What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » JavaScript Localtime

JavaScript Localtime
Author: Message:
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: PHP Localtime
You can't figure it out. PHP's time function is got from the server, not a browser, therefore the time(); function matches what the server's time is.

If you don't want to use timestamps, use gmtime(); which gives the correct GMT time (instead of the server's default time) :).

Edit: You could use javascript, although it can be difficult and it does contain a small amount of limitations.

This post was edited on 04-11-2007 at 01:57 PM by absorbation.
04-11-2007 01:55 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
JavaScript Localtime - by Eddie on 04-11-2007 at 01:42 PM
RE: PHP Localtime - by Ezra on 04-11-2007 at 01:49 PM
RE: PHP Localtime - by Eddie on 04-11-2007 at 01:51 PM
RE: PHP Localtime - by absorbation on 04-11-2007 at 01:55 PM
RE: PHP Localtime - by markee on 04-11-2007 at 02:07 PM
RE: PHP Localtime - by Eddie on 04-11-2007 at 02:23 PM
RE: PHP Localtime - by Ezra on 04-11-2007 at 02:24 PM
RE: JavaScript Localtime - by Eddie on 04-11-2007 at 02:25 PM
RE: JavaScript Localtime - by Ezra on 04-11-2007 at 02:36 PM
RE: JavaScript Localtime - by Eddie on 04-11-2007 at 02:39 PM
RE: JavaScript Localtime - by Ezra on 04-11-2007 at 02:48 PM
RE: JavaScript Localtime - by Eddie on 04-11-2007 at 02:50 PM
RE: JavaScript Localtime - by markee on 04-11-2007 at 02:59 PM
RE: JavaScript Localtime - by Eddie on 04-11-2007 at 03:33 PM
RE: JavaScript Localtime - by Matti on 04-14-2007 at 02:05 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On