The alfresco log is registering with an extra hour. How to set the jvm time for alfresco and what are the achievements?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

The alfresco log is registering with an extra hour. How to set the jvm time for alfresco and what are the achievements?

According to link https://www.oracle.com/technetwork/java/javase/documentation/tzupdater-readme-136440.html, we should update the java / jvm Timezone. I uploaded the alfresco, the log records an hour later:

2018-10-23 17:44:44,056 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for ftl extension 
2018-10-23 17:44:44,105 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js
2018-10-23 17:44:44,105 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor freemarker for ftl extension
2018-10-23 17:44:44,108 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor javascript for extension js‍‍‍‍

How to correct?

3 Replies
Highlighted
Master

Re: The alfresco log is registering with an extra hour. How to set the jvm time for alfresco and what are the achievements?

I am not a 100% sure what your problem is. Is it just that the log shows timestamps 1 hour after what your local time should be? The timezone updater tool you linked to should be irrelevant for most of such constellations, unless you live in a country that has changed timezone adherance or daylight savings time start/end rules since your specific Java version was released (which only a handful of countries have done AFAIK). Most of the time, it is the system clock of your server that is just set incorrectly or in a different timezone, and Java (and by extension Alfresco) pick up that incorrect time for use in the logs and other areas.

So, before messing with Java and timezones, first make sure your operating system time is set correctly.

Highlighted
Member II

Re: The alfresco log is registering with an extra hour. How to set the jvm time for alfresco and what are the achievements?

The change of the beginning / end rules of the summer harare in Brazil was exactly what happened for the year 2018. The operating system clock is correct. Only the jvm watch has been working with an extra hour since last Sunday. So oracle has already passed a patch to jvm / java. The oracle fix is only valid for the year 2018. What to do with alfresco? The question here is whether we can apply the oracle correction to alfresco java. What are the consequences, impact of applying oracle fix to alfresco? Or what are the impacts of leaving it as it is?

Highlighted
Master

Re: The alfresco log is registering with an extra hour. How to set the jvm time for alfresco and what are the achievements?

So you are already seeing the impact: time stamps will deviate from what they should be.

The Java included in Alfresco (if you used the default installer which is supposed to be used for dev / trial environments primarily, not really for production environments) can be fixed just like any other Java install, just maybe not via the OS package manager itself since it is essentially a 3rd party piece of software... You could also install a clean, up-to-date Java 8 from Oracle (one of the last updates before the end of public updates) and reconfigure Alfresco to use that instead.