DST/Summertime across the Atlantic

DST/Summertime across the Atlantic

am 12.03.2007 21:08:08 von exjxw.hannivoort

Since 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)

Re: DST/Summertime across the Atlantic

am 12.03.2007 21:52:24 von Dave Anderson

Evertjan. wrote:
> Anyone with a simpler solution?

Always use GMT?



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Re: DST/Summertime across the Atlantic

am 12.03.2007 22:03:59 von exjxw.hannivoort

Dave Anderson wrote on 12 mrt 2007 in
microsoft.public.inetserver.asp.general:

> Evertjan. wrote:
>> Anyone with a simpler solution?
>
> Always use GMT?

Would be nice. Why dosn't VBS have GMT knowledge?

However:

1 others make use of those servers too.

2 UTC/GMT is not practical for my users.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)