Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 4th May 2011, 02:50 PM   #1
Sandee, RHP
War Room Member
 
SShip's Avatar
 
Join Date: 2010
Location: USA, TheReconnectiveTouch.com
Posts: 194
Thanks: 83
Thanked 160 Times in 131 Posts
Default
How Do I Change This?
Share on: 
fb share twitter share gplus share more share

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
SShip is offline  
Unread 4th May 2011, 03:54 PM   #2
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 63
Thanks: 4
Thanked 7 Times in 5 Posts
Default
Re: How Do I Change This?
Share on: 
fb share twitter share gplus share more share

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.
ToneUK is offline  
Unread 4th May 2011, 05:19 PM   #3
Sandee, RHP
War Room Member
 
SShip's Avatar
 
Join Date: 2010
Location: USA, TheReconnectiveTouch.com
Posts: 194
Thanks: 83
Thanked 160 Times in 131 Posts
Default
Re: How Do I Change This?
Share on: 
fb share twitter share gplus share more share

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.
Attached Thumbnails
How Do I Change This?-screen-shot-2011-05-04-7.15.57-pm.png  

SShip is offline  
Unread 4th May 2011, 06:26 PM   #4
HyperActive Warrior
War Room Member
 
Join Date: 2005
Location: , , USA.
Posts: 410
Thanks: 0
Thanked 101 Times in 54 Posts
Blog Entries: 5
Default
Re: How Do I Change This?
Share on: 
fb share twitter share gplus share more share

You mean you just want to add EST to the end of it? or the time isn't converting?
stma is offline  
Unread 4th May 2011, 06:28 PM   #5
Sandee, RHP
War Room Member
 
SShip's Avatar
 
Join Date: 2010
Location: USA, TheReconnectiveTouch.com
Posts: 194
Thanks: 83
Thanked 160 Times in 131 Posts
Default
Re: How Do I Change This?
Share on: 
fb share twitter share gplus share more share

Originally Posted by stma View Post

You mean you just want to add EST to the end of it? or the time isn't converting?

The time isn't converting.

SShip is offline  
Unread 4th May 2011, 06:35 PM   #6
Sandee, RHP
War Room Member
 
SShip's Avatar
 
Join Date: 2010
Location: USA, TheReconnectiveTouch.com
Posts: 194
Thanks: 83
Thanked 160 Times in 131 Posts
Default
Re: How Do I Change This?
Share on: 
fb share twitter share gplus share more share

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.
Attached Thumbnails
How Do I Change This?-screen-shot-2011-05-04-8.30.26-pm.png  
SShip is offline  
Closed Thread


Bookmarks

Tags
change


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:18 PM.