DST/Summertime across the Atlantic
am 12.03.2007 21:08:08 von exjxw.hannivoortSince I need Central Europan Time, my servers are in Toronto,
and I cannot anymore follow Mr Bush'es influence on Canadian Time,
I made the following include .asp file,
valid for any server timezone location:
==================================
<%
nowGMT = DateAdd("h", TimezoneOffset, Now)
nowCET = DateAdd("h", 1, nowGMT)
If nowGMT>#2007-03-25 01:00# Then nowCET = DateAdd("h",2,nowGMT)
If nowGMT>#2007-10-28 01:00# Then nowCET = DateAdd("h",1,nowGMT)
If nowGMT>#2008-03-30 01:00# Then nowCET = DateAdd("h",2,nowGMT)
If nowGMT>#2008-10-26 01:00# Then nowCET = DateAdd("h",1,nowGMT)
%>
===========================================
Why the one line if-then's and no elsif's?
Because I can more easily delete past year lines
and add new years say every two years.
Anyone with a simpler solution?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)