Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

It is not safe to rely on the system's timezone settings.

I found this in the BF v8 php_error.log, what does this mean and how to fix it? Thanks. Jirong

 [11-Oct-2015 13:31:28 America/New_York] PHP Warning:  date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-4.0/DST' instead in D:\Program Files (x86)\IBM\Build Forge1\webroot\public\javascripts\translator.js.php on line 37

0 votes


Accepted answer

Permanent link
 Hi Jirong,

The error is suggesting that a certain PHP setting (date/timezone) may not be set or is incorrectly set. This setting in in a file called php.ini. I suspect that the php.ini under the "...BuildForge\Apache\php\php.ini" would be the likely one. 

Can you try editing the above php.ini and amending or adding the date/timezone entry. You will need to re-start BF Engine also. 

For example:
date.timezone = America/New_York

The following technote may also help:

http://www-01.ibm.com/support/docview.wss?uid=isg3T1016839

I hope that the above helps in getting you past the errors. If the issue persists, let me know and we can take a closer look. 

Many thanks,
Pritesh...

Jirong Hu selected this answer as the correct answer

0 votes

Comments

 The error is gone after add this. Thanks.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 11 '15, 1:39 p.m.

Question was seen: 2,654 times

Last updated: Oct 17 '15, 11:25 a.m.

Confirmation Cancel Confirm