Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Daylight Savings Time?

Reply
Thread Tools

Daylight Savings Time?

 
 
J
Guest
Posts: n/a
 
      02-22-2007
Hello. Our webserver is running Windows 2000 Server iis5 and was wondering
if anyone knew if the new Daylight Savings Time rule will affect any classic
..asp pages? I think I'm mainly concerned with the date functions like
DateDiff() or Now() that is used in these classic .asp pages that our
webserver hosts?

Thanks in advance.

J


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      02-22-2007
J wrote:
> Hello. Our webserver is running Windows 2000 Server iis5 and was
> wondering if anyone knew if the new Daylight Savings Time rule will
> affect any classic .asp pages? I think I'm mainly concerned with the
> date functions like DateDiff() or Now() that is used in these classic
> .asp pages that our webserver hosts?
>

The short answer is "no".

The long answer can be found at
http://msdn2.microsoft.com/en-us/vstudio/bb264729.aspx

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 
Reply With Quote
 
 
 
 
J
Guest
Posts: n/a
 
      02-22-2007
Thank you very much Bob. This saves me much time and headaches in
researching. I totally appreciate it.

Take cares.

J

"Bob Barrows [MVP]" <> wrote in message
news:e4M$...
>J wrote:
>> Hello. Our webserver is running Windows 2000 Server iis5 and was
>> wondering if anyone knew if the new Daylight Savings Time rule will
>> affect any classic .asp pages? I think I'm mainly concerned with the
>> date functions like DateDiff() or Now() that is used in these classic
>> .asp pages that our webserver hosts?
>>

> The short answer is "no".
>
> The long answer can be found at
> http://msdn2.microsoft.com/en-us/vstudio/bb264729.aspx
>
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>



 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      02-22-2007
Bob Barrows [MVP] wrote on 22 feb 2007 in
microsoft.public.inetserver.asp.general:

> "J" <> wrote:
>> Hello. Our webserver is running Windows 2000 Server iis5 and was
>> wondering if anyone knew if the new Daylight Savings Time rule will
>> affect any classic .asp pages? I think I'm mainly concerned with the
>> date functions like DateDiff() or Now() that is used in these classic
>> .asp pages that our webserver hosts?
>>

> The short answer is "no".


Bob is right. If you live "no where" as your email address suggests,
there is no time to speak of, so no problemo.

"the new Daylight Savings Time rule" where is that?
The Salomon Islands?

> The long answer can be found at
> http://msdn2.microsoft.com/en-us/vstudio/bb264729.aspx


Bob seems to think you live in the US, but I am not so sure.

There is more of the world out there,
where possibly new rules could come into effect.

In short, if your server has the correct time,
and you want to show and use only that time,
Whatever dst rule rules is of no consequence.

=======================

If however, as in my case, the Server is in Toronto
and the effective time should be in Central European Time,
you have a problem for the hours or days,
that the difference is not 6 hours.

You will need constructs like [this is for spring 2006]:

<%
nowCET = DateAdd("h", 6, Now)

If nowCET>#2006-03-26 02:00# then nowCET = DateAdd("h", 7, now)
If now>#2006-04-02 02:00# then nowCET = DateAdd("h", 6, now)

%>

Serverside jscript could give you the difference between UTC and server
datetime, but the differens between utc and requested datetime is up to
you.



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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Daylight Savings time configuration Andrew Barnes Cisco 2 03-24-2006 06:45 PM
Help with DateTime and TimeZones / DayLight savings time Ryan Ternier ASP .Net 1 10-14-2005 05:20 PM
daylight savings not shown properly in Timezone.getDefault() Hariharan.A Java 0 02-25-2004 10:20 AM
Daylight savings problem Svante Nicholas Arvedahl Java 9 10-24-2003 08:19 AM
No daylight savings checkbox in my date/time control panel in winXP Jim Kroger Computer Support 2 10-14-2003 09:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57