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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -