Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Warning: strftime()

Asked Modified Viewed 4,404 times
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
  • Started this discussions
asked
Senior Member

http://www.lyngdalmacrossklubb.no/

All over the site:

Quote

Warning: strftime() [function.strftime]: 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 'Europe/Berlin' for 'CEST/2.0/DST' instead in /usr/home/web/wno278986/maincore.php on line 796

What's this?
0 replies

2 posts

W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

After reading the following link, i think you need to check with your host:

http://wordpress.org/support/topic/ph...s-timezone

There may be workaround as also suggested in the link.
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
  • Started this discussions
answered
Senior Member

Thanks!

I added:

Quote

date_default_timezone_set('UTC'wink;

as line 19 in maincore.php (line 19 was empty).

Like this:

Quote

18 if (preg_match("/maincore.php/i", $_SERVER['PHP_SELF'])) { die(); }
19 date_default_timezone_set('UTC'wink;
20 error_reporting(E_ALL);

Guess I could placed it somewhere else too, but it works anyway.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

K
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
  • Started this discussions
W
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet