poer
-
Posts
1 -
Joined
-
Last visited
Reputation Activity
-
poer reacted to rice.shawn in PHP: Remember to set time zone before use of strftime()
Whoops. That way won't work (tested it in the ubuntu shell and not the mac shell).
This one will:
date_default_timezone_set( str_replace( '/usr/share/zoneinfo/' , '' , readlink('/etc/localtime') ) );