J
Justin Voelker
Hello everyone:
I have seen posts like this one a couple times looking through this
group but I have yet to find a simple, elegant answer and I know there
must be one. I have a mysql database that has a datetime field in the
format Y-m-d H:i:s for the UTC time of a given post. If I am in the
eastern timezone I am currently at -5 hours from UTC so when I make my
post at 1:00pm eastern time, the time I see dispalyed on the page is
6:00pm because it is 6:00pm UTC. How can I take that UTC datetime
stamp and convert it to the correct datetime given a specific php
timezone such as America/New_York? I know there must be a simple way
to do this I just haven't been searching the right words or
something. Please help! Thank you!!!
I have seen posts like this one a couple times looking through this
group but I have yet to find a simple, elegant answer and I know there
must be one. I have a mysql database that has a datetime field in the
format Y-m-d H:i:s for the UTC time of a given post. If I am in the
eastern timezone I am currently at -5 hours from UTC so when I make my
post at 1:00pm eastern time, the time I see dispalyed on the page is
6:00pm because it is 6:00pm UTC. How can I take that UTC datetime
stamp and convert it to the correct datetime given a specific php
timezone such as America/New_York? I know there must be a simple way
to do this I just haven't been searching the right words or
something. Please help! Thank you!!!