Forums
 This topic is locked 
             Damn TimeZones
 Posted 07 Feb 2001  14:46:43 
  1 
     has   voted 
  07 Feb 2001  14:46:43 Matthew Thornhill posted: 
 I have a site for the UK that is situated on a US server. I wanted to utilise the server time and date i.e. Now() Time() but obviously the time is wrong.....Does anyone know how I add a couple of hours onto the time.............
I've seen in done a Were-here as they ask you when you join which time zone you are from......
MaT
Replies
 Replied 15 Feb 2001  15:52:49 
   15 Feb 2001  15:52:49 Matthew Thornhill replied: 
  If anyone is interested I found how to add a few hours onto the server time, to bring it in line with your own time zone if it is different from the servers 
<%US_Time = time()
UK_Time = DateAdd("h",6,US_Time)%>
<%=UK_Time%>
MaT
  
<%US_Time = time()
UK_Time = DateAdd("h",6,US_Time)%>
<%=UK_Time%>
MaT
 Replied 15 Feb 2001  20:27:00 
   15 Feb 2001  20:27:00 Waldo Smeets replied: 
  Thanks Mat,
I suggest you post this as a FAQ: you have the question and the answer <img src=icon_smile.gif border=0 align=middle>
That would be really great.
Thanks.
Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A Dreamweaver, Dreamweaver
Ultradev and Fireworks site by developers
for developers.
------------------------------------------
  I suggest you post this as a FAQ: you have the question and the answer <img src=icon_smile.gif border=0 align=middle>
That would be really great.
Thanks.
Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A Dreamweaver, Dreamweaver
Ultradev and Fireworks site by developers
for developers.
------------------------------------------

