KBEC-00099 - Setting the CloudBees CD (CloudBees Flow) Web Server time zone

Article ID:360032831532
1 minute readKnowledge base

Summary

CloudBees CD (CloudBees Flow) stores all times internally using UTC (also known as Zulu time.) The CloudBees CD (CloudBees Flow) Web Server translates the time to the local time zone based on the time zone settings in the operating system of the machine where the Web Server is running.

There is a known flaw in the interaction of PHP with Windows, such that it does not handle certain operating system time zones correctly. If the Web Server is running on a machine that is set for one of these time zones, users connected to that Web Server will see all times displayed as UTC times, instead of in the Web Server’s time zone.

Solution

The workaround is to set the PHP "timezone_identifier" explicitly in config.php.

To set the time zone, use a text editor to modify

C:\Program Files\Electric Cloud\ElectricCommander\apache\htdocs\commander\config.php

In the file, add a line anywhere between the opening and closing PHP tags

date_default_timezone_set("");

Examples

To set the time zone for Taipei, add

date_default_timezone_set("Asia/Taipei");

See Also

For a complete "List of Supported Timezones", see https://www.php.net/manual/en/timezones.php

Applies to

  • OS versions: Windows