date_default_timezone_set for php5 date() fixation
by alamster in August 25th, 2007
Recent upgrade to php5 in appserv make me confuse when my friend ask me about this code :
print date(’d-M-Y H:i:s’);
hour isn’t accurate
after googling I found about date_default_timezone_set
for full list of supported zone time see this link
http://www.php.net/manual/en/timezones.php
edit the code into
date_default_timezone_set( "Asia/Jakarta" );
// date.timezone = "timezone_here"
print date(’d-M-Y H:i:s’);
work well
Freelance Project:
- Flash Animation by mnarula
- Data Extraction - No Duplicate Records by rightnowloads
- 232 - Private for NeonGreen-Blog by jbisonaroll
- 231 - Private for NeonGreen-Blog by jbisonaroll
- 230 - Private for NeonGreen by jbisonaroll
- Label project2 by declanpatrick
- 229 - Private for NeonGreen-Blog by jbisonaroll
- Around 5 simple Adobe Flash Pro Questions by msonlinebiz
- Genuine traffic to a Yoga Site by Onlinethings
- Link Building / SEO. PR4+ ONLY Previous experience required by parnasa


No Comment
Random Post
Leave Your Comments Below