You are here

Times displayed on the web site

10 posts / 0 new
Last post
xerces8
Offline
Last seen: 8 years 12 months ago
Joined: 2010-01-23 06:17
Times displayed on the web site

Hi!

Times displayed on the web site are formatted (apparently) in US locale and the values are in some timezone, that is one of US timezones, I guess.
As the site is visited from all over the world, at least the information about the used timezones should be available somewhere.
Maybe like this: November 1, 2008 - 6:37pm PST

Or use a one line Javascript that displays times in the viewers timezone (and format).

(this is thing common on almost every web page, I'm trying to convert them one at a time Wink )

Regards,
David

Mark Sikkema
Offline
Last seen: 13 years 5 months ago
Developer
Joined: 2009-07-20 14:55
Local time

I am in the Netherlands, and it just shows my local time !

The messages from other users any where else in the world, seem to be converted to my local time as well

Formerly Gringoloco
Windows XP Pro sp3 x32

Simeon
Simeon's picture
Offline
Last seen: 10 years 4 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Yes

You can go into your account here and ajust your time zone. Then it will be displayd correctly.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

xerces8
Offline
Last seen: 8 years 12 months ago
Joined: 2010-01-23 06:17
Oh, sorry, I forgot to

Oh, sorry, I forgot to mention that I was talking about not logged in people, like when somebody searches something on Google and gets directed to some forum post here.

Logged in users are different. (and even they must set the timezone manually).

Regards,
David

gluxon
gluxon's picture
Offline
Last seen: 4 years 5 months ago
Developer
Joined: 2008-06-21 19:26
Doesn't drupal automatically

Doesn't drupal automatically look at their IP and get the correct timezone? Blum

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 5 months ago
Developer
Joined: 2009-08-11 11:24
No

No, it doesn't. From what I can see, it shows the times in the default server timezone; phpBB3 does the same thing.
Looking at a user's IP may not be the best way to go, either, since proxying is getting more and more common.

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

NathanJ79
NathanJ79's picture
Offline
Last seen: 5 years 2 weeks ago
Joined: 2007-07-31 15:07
Proxies

computerfreakerLooking at a user's IP may not be the best way to go, either, since proxying is getting more and more common.

Well, if somebody's sneaking around on a proxy and a website fails to identify them properly for the purpose of displaying the website in a manner convenient to them, I say blame the user, not the site. The site did its job, but the user wanted to be clever, so they can hardly complain if the site makes the wrong assumption about where they are. If they want to correct that, they can register an account and set the time zone manually.

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 5 months ago
Developer
Joined: 2009-08-11 11:24
Valid points. I brought up

Valid points.
I brought up proxies simply because they're getting more popular; people have gotten way more paranoid/security conscious, and things such as Tor have gotten a pretty big userbase boost lately, from all I can see.

Anyway, the server shows times in its default timezone for guests and un-logged in users; I think the time shown is Eastern time (NYC), but I'm not certain. Never actually tried calculating it...

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

NathanJ79
NathanJ79's picture
Offline
Last seen: 5 years 2 weeks ago
Joined: 2007-07-31 15:07
Calculating time zones

Your profile says you're in the United States. Is that accurate?

If you're on the East Coast, it's likely the time is right for you. About a third of the continental US is on Eastern Standard Time during the winter and Eastern Daylight Time during the summer. EST is GMT (the UK) -5.

If you're on the West Coast, you're in Pacific Standard Time which should be 3 hours before EST, or GMT -8. The middle of the US is divided between Mountain Time (Rockies, e.g. Colorado) and Central (e.g. Indiana). Those are GMT -7 and GMT -6 respectively.

As I post this, it's about 7:37pm (1937 in 24-hour notation). I know I'm in the same time zone as John (I'm in North Carolina, he's in New York IIRC) but I don't know where PortableApps.com's servers are (Rackspace? Texas?) but I know a site owner can set the site time manually. I had a domain when I moved from CA to NC and was able to move the site from PST to EST with no problems in cPanel.

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 5 months ago
Developer
Joined: 2009-08-11 11:24
Re:

NathanJ79Your profile says you're in the United States. Is that accurate?

Maybe.
Sorry to be so vague, but I like my shield of anonymity; I can count on one hand the number of people, over 3-5 forums, who know my true ID, and none of them really should.

Even if the server's timezone is different from mine, I hardly notice; I don't really read the timestamps anyway...

Cheers!

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Log in or register to post comments