Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Warning: date()
06-11-2012, 02:20 AM
Post: #1
PHP Warning: date()
Hi,

I am from India and installed the WebERP on windows 7 machine. Installation was smooth and without any errors. I am able to login also.

After login I get following error above and below the WebERP screen.

Quote: 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 'Asia/Kolkata' for '5.5/no DST' instead in E:\Intranet\webERP\includes\session.inc on line 142

PHP Warning: mktime() [<a href='function.mktime'>function.mktime</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 'Asia/Kolkata' for '5.5/no DST' instead in E:\Intranet\webERP\includes\DateFunctions.inc on line 759

This error gets repeated multiple times for multiple files.

Any idea, how to solve this. Did I do something wrong while installing. I tried selecting other country but no luck.

I am new to WebERP and doesn't know much. Huh

Thanks


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
06-12-2012, 07:53 AM
Post: #2
RE: PHP Warning: date()
Can you select a timezone in config.php and see if that resolves it?

Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Visit this user's website Find all posts by this user
Quote this message in a reply
06-12-2012, 11:40 AM (This post was last modified: 06-12-2012 11:57 AM by paragkenia.)
Post: #3
RE: PHP Warning: date()
I did try putting different timezone in config.php but it seems to have no effect on error. I tried

putenv('TZ=Asia/Katmandu')

Also

putenv('TZ=Europe/London')

but it didn't solve the problem.

Anything else???

Thanks
SolvedSmile

Put the following in php.ini

Quote:date.timezone = "Asia/Kolkata"

This solved the problem.
Find all posts by this user
Quote this message in a reply
11-05-2012, 06:01 PM
Post: #4
RE: PHP Warning: date()
exceptional site post. I am going to bookmark http://www.weberp.org and check out a lot more often. I really like the website template Wonderful!
Find all posts by this user
Quote this message in a reply
01-05-2016, 02:15 PM
Post: #5
RE: PHP Warning: date()
but it seems to have no effect on error.
gclub blog
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)