siteadmin timezone problem | Community
Skip to main content
sandeepm744005
New Participant
May 2, 2016
Solved

siteadmin timezone problem

  • May 2, 2016
  • 6 replies
  • 1931 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Tuhin_Ghosh

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

6 replies

Tuhin_Ghosh
New Participant
May 5, 2016

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

Thanks

Tuhin

sandeepm744005
New Participant
May 5, 2016

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.

Tuhin_Ghosh
Tuhin_GhoshAccepted solution
New Participant
May 3, 2016

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

sandeepm744005
New Participant
May 3, 2016

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-manager.topic.html/forum__4gw9-hi_our_serversa.html

//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/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__sbsf-i_want_to_changethe.html

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.

kautuk_sahni
Employee
May 3, 2016

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-manager.topic.html/forum__4gw9-hi_our_serversa.html

//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/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__sbsf-i_want_to_changethe.html

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
Tuhin_Ghosh
New Participant
May 2, 2016

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