PDA

View Full Version : Server Time (1 hour behind) Local CST time.



ClickaNerd
October 29th, 2013, 11:20 AM
Hey Rick, this web server is posting (1) hour behind CST.

cnjbond
October 29th, 2013, 11:21 AM
Hey Rick, this web server is posting (1) hour behind CST.

Must be getting an early jump on clocks going back an hour on Sunday... :)

ClickaNerd
October 29th, 2013, 11:34 AM
This little chunk of code works on any web server:

<%
sDate = Now()
sNewDate = DateAdd("h", -1, sDate)

' You can add with a positive or subtract using a negative number
's - Second
'n - Minute
'h - Hour
'd - Day
'y - Day of year
'w - Weekday
'ww - Week of year
'm - Month
'q - Quarter
'yyyy - Year

response.write sNewDate

%>

Rick
October 29th, 2013, 12:02 PM
The time looks right to me. I changed your settings to "Daylight Savings Time" is in effect.

Check it now.

ClickaNerd
October 29th, 2013, 12:47 PM
Test

sojourner truth
October 29th, 2013, 1:01 PM
Yes folks...it's that time of year again. Set them clocks backwards an hour on Sunday mormning or Saturday night before you go to bed.

The only problem we ever have is the AC system changes on the old changeover date, so for a week or 2 we have to change the settings.

Same with mommas alarm clock.