Jump to content

date function


makasoft

Recommended Posts

Forum Rules:

 

17. Users should not "bump" topics that are still on the first page of the forums. If you bump, you must provide additional information. If you resort to bumping, chances are your question needs to be re-thought and re-described (see Eric Raymond's "How To Ask Questions The Smart Way").

 

You seriously bumped your thread after TWO MINUTES?

 

Anyway a quick google search led me to the PHP manual page for date_default_timezone_set() (The actual error message probably would have been faster, but you declined to provide it). On that page is the following information:

 

Note:

Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if using the system settings or the TZ environment variable.

 

So you should probably use that function to set the timezone in your PHP script.

Link to comment
https://forums.phpfreaks.com/topic/276220-date-function/#findComment-1421407
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.