|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Need a west coast (US) based ColdFusion host [spamtrap heur]
On 7/30/2010 2:09 AM, Charlie Griefer wrote:Paul Hastings 07/29/10 10:57 P Well i do something similar in a way. I never use now() in any of myMike Kear 07/29/10 11:46 P > Well i do something similar in a way.Michael Grant 08/04/10 07:37 P Just noticed this thread and I thought it was worth pointing out thatSean Corfield 08/04/10 08:12 P 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 ;-) 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 ----- > 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. ;) 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 ;-)
|
September 05, 2010
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||