php - Displaying dates in EST -


i have blog on site. each blog-post has comments section @ end. when user comments, comments show per central time. however, looking display them per est. have included code snippet displays timestamp. works fine, except instead of est, time displayed central.

$dateformat = '%b %e, %y %i:%m %p';  

i have used parameters described here - http://php.net/manual/en/function.strftime.php

the site hosted godaddy, falls under central time. not sure, if fact site hosted on godaddy server has this. have called , checked godaddy, unable offer advice. appreciated.

thanks!

use this:

date_default_timezone_set('america/new_york'); 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -