Wrong settings of the user language and locale causes build logs to be shown with a default time 01-Jan-1970 01:00:00
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
When running bamboo build plans or deployments, the datetime shown in the build logs default to 01-Jan-1970 01:00:00 . If the build logs is however downloaded, the correct time is shown. See the screenshot for the current abnormally
Cause
The root of the issue is caused by the fact that the user locale was wrongly set or conflicts with the user language. An example of such is when the user locale is in Swiss and the language is US. This can also happen the other way round. The only rare case where this is displayed correctly is in months where the month abbreviation is same in both languages. In the example above, November is abbreviated as Nov. in both US and Swiss and as such this problem will not be noticeable. For more information about months abbreviation in several locales see http://library.princeton.edu/departments/tsd/katmandu/reference/months.html
Resolution
Please check and alter the values of this properties as appropriate.
1
-Duser.language=DE -Duser.country=CH -Duser.timezone=Europe/Berlin
If you are not sure about the values of the above, please check here . For info on how to configure system properties, please see Configuring your system properties
Was this helpful?