Expand my Community achievements bar.

SOLVED

siteadmin timezone problem

Avatar

Level 5

We are facing weird issue with AEM. server date is showing in the PDT and also, we are using the -Duser.timezone in the timezone to set the timezone as PST but still in the siteadmin#, seeing some different timezone. Please advice, logs are fine, it is showing correct timezone only.

bash-4.2$ date
Mon May  2 13:35:01 PDT 2016

 

 CQ_JVM_OPTS -Duser.timezone=America/Los_Angeles

1 Accepted Solution

Avatar

Correct answer by
Level 7

Hi Sandeep,

Could you please check that all your server AEM, Unix, any DB, any other server is set to the same time zone and is in sync. See if that helps, but I believe this was the first thing you might have checked.

One more thing, AEM's default timezone is America/Los_Angeles if could remember it correctly. remove your timezone arg once and see if this solves this problem. While this is not  a solution to this issue but might help you if you need this urgently.

If everything fails close this ticket and log a ticket with daycare.

Thanks

Tuhin

View solution in original post

6 Replies

Avatar

Level 7

Hi Sandeep,

 

If you are using -Duser.timezone that should be more than enough to show the correct time. 

Please note that the time shown in the siteadmin is the last edited/modified time. So the current time wont be there in the siteadmin.

 

Thanks

Tuhin

Avatar

Administrator

Hi 

Supporting Tuhin, 

Please have a look at this old forum threads:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

//In the start up script pass the JVM  param -Duser.timezone with the value you want

Link:- http://unityprod-elbunity-1wnqxiwpjnn7g-1363695545.us-east-1.elb.amazonaws.com/content/adobeforums/e...

Reference article:- https://forums.adobe.com/thread/1061940

//

When user makes any modification on page the PagePostProcessor saves the content along with modifying date. As it is done at server side it should take server timezone.  I have seen issue with earlier jdk bug in one of envirnoment.  Coud you please explictely set system property (-Duser.timezone) & verify.

 

I hope this would be useful for you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 5

kautuksahni wrote...

Hi 

Supporting Tuhin, 

Please have a look at this old forum threads:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

//In the start up script pass the JVM  param -Duser.timezone with the value you want

Link:- http://unityprod-elbunity-1wnqxiwpjnn7g-1363695545.us-east-1.elb.amazonaws.com/content/adobeforums/e...

Reference article:- https://forums.adobe.com/thread/1061940

//

When user makes any modification on page the PagePostProcessor saves the content along with modifying date. As it is done at server side it should take server timezone.  I have seen issue with earlier jdk bug in one of envirnoment.  Coud you please explictely set system property (-Duser.timezone) & verify.

 

I hope this would be useful for you.

Thanks and Regards

Kautuk Sahni

 

 

 

 

 

Hi Kautuk,

We already have -Duser.timezone in the CQ_JVM_OPTS parameter and date command is showing the PST timezone only but still it is showing the time CurrentTime -3 hours in the siteadmin. Please advice what else i need to do to fix this. 

CQ_JVM_OPTS='-server -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xmx4096m -XX:MaxPermSize=512M -Djava.awt.headless=true -javaagent:/app/A
EM6/author/crx-quickstart/app/newrelic/newrelic.jar -Djava.io.tmpdir=/app/AEM6/author/tmp -Duser.timezone=America/Los_Angeles'

 

I have opened a ticket for my Unix team but they are not sure if any other system property which needs to be updated.

Avatar

Correct answer by
Level 7

Hi Sandeep,

Could you please check that all your server AEM, Unix, any DB, any other server is set to the same time zone and is in sync. See if that helps, but I believe this was the first thing you might have checked.

One more thing, AEM's default timezone is America/Los_Angeles if could remember it correctly. remove your timezone arg once and see if this solves this problem. While this is not  a solution to this issue but might help you if you need this urgently.

If everything fails close this ticket and log a ticket with daycare.

Thanks

Tuhin

Avatar

Level 5

Yup, earlier timezone field was not there in the start script but DayCare support person advised to add the value in the script. I will reopen the ticket. thanks.

Avatar

Level 7

If you are opening a day care ticket then please close this one.

Thanks

Tuhin