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?
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.
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?
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.