House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Need a west coast (US) based ColdFusion host [spamtrap heur]

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Paul Hastings
07/29/2010 10:57 PM

On 7/30/2010 2:09 AM, Charlie Griefer wrote: > funds for VPS, unfortunately) on a server with the clock set to PST. ah just think how simpler our world would be w/a setTimezone() function ;-)

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mike Kear
07/29/2010 11:46 PM

Well i do something similar in a way.    I never use now() in any of my code.  Instead in the application.cfc i create a variable called request.austime  (for Australian Time) and throughout my code whenever i need a time stamp or a date or i might otherwise use now(), i use request.austime instead. Then,  depending on the environment,  in Application.cfc I create request.austime in different ways but it has no effect on the rest of the code.    In my development machine, I use  <cfset request.austime = now() /> because the system clock is set to my local time zone.   On my production machine, which is set to UTC, i use the timezone.cfc to convert UTC to Sydney time (or for clients who want their sites to appear based in other timezones I'll use the same cfc to set the variable request.austime to that time zone.) In other words, that whole timezone/daylight savings thing is handled in one, maybe two lines of code in application.cfc and the rest of the application doesnt need to know or care what timezone the server is sitting in. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Fri, Jul 30, 2010 at 12:57 PM, Paul Hastings <paul@sustainablegis.com>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Michael Grant
08/04/2010 07:37 PM

> Well i do something similar in a way. As do I. I've got a setLocalTZ() function and all my times are based on UTC. Once you go UTC you'll never go back. ;)

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Sean Corfield
08/04/2010 08:12 PM

Just noticed this thread and I thought it was worth pointing out that Railo allows you to set the server to any timezone on a per web application context basis (so you can have different sites on the same server all running in different timezones). On Thu, Jul 29, 2010 at 7:57 PM, Paul Hastings <paul@sustainablegis.com> wrote: > On 7/30/2010 2:09 AM, Charlie Griefer wrote: >> funds for VPS, unfortunately) on a server with the clock set to PST. > > ah just think how simpler our world would be w/a setTimezone() function ;-)


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

September 05, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       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