| | #1 |
| Sandee, RHP War Room Member Join Date: 2010 Location: USA, TheReconnectiveTouch.com
Posts: 194
Thanks: 83
Thanked 160 Times in 131 Posts
|
I would like to change this code to EST (not military) but can't figure it out. "F j, Y, g:i" - The date part is fine, which I believe is the "F j, Y," but I can't get the time to do what I want it to do. Right now, it's 4:49pm EST where I'm at. Can anyone please shed some light on this? Regards, Fruzz |
| |
| | #2 |
| Active Warrior War Room Member Join Date: 2011
Posts: 63
Thanks: 4
Thanked 7 Times in 5 Posts
|
Try this code: $dateTime = new DateTime("now", new DateTimeZone('EST')); echo $dateTime->format("F j, Y, g:i"); |
| Free article directory for publishers to download. Free article submission with fast approval times. Submit free articles with back links that are Do follow.
| |
| |
| | #3 |
| Sandee, RHP War Room Member Join Date: 2010 Location: USA, TheReconnectiveTouch.com
Posts: 194
Thanks: 83
Thanked 160 Times in 131 Posts
|
Thank you very much for your response. The time still doesn't work correctly. It shows the way I want it to show, but doesn't show the correct time - EST.
|
| | |
| |
| | #5 |
| Sandee, RHP War Room Member Join Date: 2010 Location: USA, TheReconnectiveTouch.com
Posts: 194
Thanks: 83
Thanked 160 Times in 131 Posts
| |
| | |
| |
| | #6 |
| Sandee, RHP War Room Member Join Date: 2010 Location: USA, TheReconnectiveTouch.com
Posts: 194
Thanks: 83
Thanked 160 Times in 131 Posts
|
Here's an example: I just posted this test and it's 8:30pm EST when I did it (which is what I'm looking for). I've posted an image for you to see, it says 12:30am in the thread, way off from what I'm looking to get. Thanks for your help. |
| |
|
| Bookmarks |
| Tags |
| change |
| |