Skip to main content
Inspiring
March 31, 2009
Question

Opening Page at specific date/time

  • March 31, 2009
  • 2 replies
  • 375 views
I am trying to forbid access to a page on our website until a certain date/time which is easy enough to do but it has to be a certain date/time EST (or DST as we are now in) and the server is in PST. Basically if someone is in Iowa, we want them to be able to get into the page at 10am EST even though it is only 9am there... Is this possible??
This topic has been closed for replies.

2 replies

Inspiring
April 1, 2009
hml398 wrote:
> we want them to be able to get into the page at 10am EST even though it is only
> 9am there... Is this possible??

if it's a one off just check the time minus the timezone (tz) offset. assuming
that the server's following DST (and i would imagine it is) you should be good
to go.

if you need to handle this for more complex situations (ie many tz, more often)
you might look at the tz CFC:

http://www.sustainablegis.com/projects/tz/testTZCFC.cfm

Inspiring
March 31, 2009
The simplest way is to add 3 hours to your server time.