Incorrect time showing in search UI
Email timestamps are recorded in UTC format in MailArchiva, and translated for display in the search interface according to Java's time zone conversion data. An email's archive time is stamped by the MailArchiva server. It's sent time is stamped by the sender mail server. Its received time is stamped by the receiving mail server. Of course, its normal for archive, sent and received times to be slightly different due to the fact that time is stamped by different servers at different times. As a first step, ensure that system time is set correctly on all these servers + the client workstation.
Update Java timezone info (Linux)
It is possible that Java's time zone conversion data needs an update. To perform the update of time zone info on Linux systems, save the contents of the below to a file called update-tzdata.sh.
echo "Downloading tzupdater"
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/tzupdater/2.3.2/tzupdater-2.3.2.zip
echo "Downloading latest tzdata"
wget -O /tmp/tzdata-latest.tar.gz http://www.iana.org/time-zones/repository/tzdata-latest.tar.gz
sha512sum /tmp/tzdata-latest.tar.gz | cut -c -128 > /tmp/tzdata-latest.tar.gz.sha512
echo "Apply update"
java -jar tzupdater.jar -v -u -l file:/tmp/tzdata-latest.tar.gz
Run the following commands on the Linux terminal (from the same directory as update-tzdata.sh file written above):
systemctl restart mailarchiva
Found this information useful? Visit mailarchiva.com to learn more about MailArchiva.