Timestamp in filterlist update

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
User avatar
Parson
Posts: 65
Joined: Fri Jun 16, 2006 10:32 am
Location: Germany, Beach District

Timestamp in filterlist update

Post by Parson »

Nothing of importance, just curious:
when I update a filterlist I get a message like "Last download: <date> 11:03 (success)". Where does the time come from? I noticed that it shows one hour off (11.03 when it's acutally 12:03). My system clock is on 12:03. Image
Wladimir Palant

Post by Wladimir Palant »

Interesting. Try this URL:

javascript:alert(new Date().toLocaleString())

It should show current time on your system - I guess it will be 1 hour off as well.
User avatar
Parson
Posts: 65
Joined: Fri Jun 16, 2006 10:32 am
Location: Germany, Beach District

Post by Parson »

Yep, looks like the Javascript date function doesn't take account of the Daylight Saving Time.
javascript:alert(new Date().getTimezoneOffset())
shows a timezone offset to GMT of 60 min but we switched from MEZ to MESZ (GMT+1 to GMT+2) last week.
Wladimir Palant

Post by Wladimir Palant »

Maybe you didn't configure Windows to switch to daylight saving time automatically - I had this as well once and was wondering why Mozilla Mail was dating my mails wrongly.
User avatar
Parson
Posts: 65
Joined: Fri Jun 16, 2006 10:32 am
Location: Germany, Beach District

Post by Parson »

Ha! Found it!
My daylight saving time settings were correct, the culprit was an environment variable.
On my system was a setting
TZ=MET-1DST

This must have been there for years, I can remember that I set it myself, but can't remember why ;-)
I guess it was an old pgp installation or something that required this.

I deleted that variable and now javascript displays the time correctly. *cheer*
Post Reply