Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Date Date
Qty:
Subtotal
Promotions
Estimated Shipping
VAT
Calculated at checkout
Total
Checkout
ColdFusion Help / 

How to ensure correct UTC Time Conversion for U.S. Daylight Saving Time changes in 2007 (ColdFusion 5)

Adobe Community Help


Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

Issue

ColdFusion 5 depends on the operating system to calculate date and time information. The U.S. Daylight Savings Time changes for 2007 will cause incorrect Universal Time Coordinated (UTC) conversions with ColdFusion 5.

Note: Support for ColdFusion 5 officially ended on January 1, 2007 -- see www.adobe.com/support/programs/coldfusionent/?tab:contact=1#cf5policy for more details.

To the top

Reason

The U.S. Energy Policy Act of 2005 extended the daylight savings time (DST) for the U.S. an extra four weeks. Starting in 2007, the DST in the U.S. will begin at 2:00 A.M. on the second Sunday in March (03/11/2007), and end on 2:00 A.M. on the first Sunday in November (11/04/2007). To compensate for the change, operating system vendors have released patches to update the internal DST information. ColdFusion 5.0 continues to use the original DST information on patched systems, and will miscompute local time to UTC (Local2UTC) and UTC to local time (UTC2Local) conversion made with the dateConvert function during daylight savings time. All other ColdFusion 5.0 date and time functions will use the updated DST information and perform the appropriate date and time evaluations correctly.

Note: The ColdFusion MX (all versions) dateConvert function behaves correctly with the Sun Java Virtual Machine (JVM) version 1.4.2_11 or higher. For further details, see TechNote d2ab4470.

To the top

Solution

Apply the appropriate operating system patch to install the updated DST information. Consult your operating system vendor for more information on installing their patches. Here are some links to information on the 2007 U.S. Daylight Savings Time change for operating system vendors supported by ColdFusion 5:

  • Microsoft Windows XP and 2003: http://support.microsoft.com/kb/928388
  • Sun Solaris (account required): http://sunsolve.sun.com/
  • Linux:
    • Red Hat: http://kbase.redhat.com/faq/FAQ_80_7909.shtm
    • Novell SuSE: http://www.novell.com/support/dynamickc.do?externalId=3853518&sliceId=SAL_Public&command=show&forward=nonthreadedKC

ColdFusion 5's dateConvert function adds an hour for Local2UTC conversions and subtracts an hour for UTC2Local conversions. The workaround is to subtract an hour for Local2UTC and add an hour for UTC2Local conversion during DST. For example:

<cfscript> cfTZ = getTimeZoneInfo(); dateObj = now(); if (cfTZ.isDSTOn) { utcDate = dateAdd('h', -1, dateConvert("Local2UTC", dateObj)); localDate = dateAdd('h', 1, dateConvert("UTC2Local", dateObj)); } else { utcdate = dateConvert("Local2UTC", dateobj); localDate = dateConvert("UTC2Local", dateObj); } </cfscript>

ColdFusion 5 Additional DST Change Step

If the operating system has had the appropriate DST patches applied then, in general, ColdFusion 5 will use the time it gets from the OS. The two caveats are:

  • The DateConvert() function, resolved with the coding workaround.
  • The ColdFusion Server Monitoring reporting / ColdFusion Management Repository Server (CFAM) process. Only if you are utilizing this tool will you need to upgrade the JVM used by the internal version of JRun 3 that comes with ColdFusion 5. The reporting functionality is a Java based application that is dependant on the Sun JVM for it's date time functionality, which is why the JVM upgrade is needed.

To ensure that the reporting reflects the correct date/time, download the appropriate Sun JVM and edit the local.properties file for the JRun server to point to the newer JVM. The 1.3.1_18 Sun JVM has the DST fixes.

The Sun JVM 1.3.1_18 or above can be downloaded from here.

  1. Download and install the JVM.
  2. Edit the section in cf_root\jrun\servers\cfam\local.properties file and the cf_root\jrun\servers\default\local.properties file called "Path to java virtual machine. Launchers will use system PATH if necessary".



    It will look similar to the following, but pathing may be different, based on OS and install directory structure of ColdFusion. Redirect the path to the equivalent section in the new JVM executable:



    (Solaris)

    FROM:

    java.exe=/opt/coldfusion/jre/bin/sparc/native_threads/java



    TO:

    java.exe=/opt/j2sdk1_3_1_18/jre/bin/sparc/native_threads/java
  3. Restart the all the ColdFusion 5 processes to pick up the JVM change.
To the top

Additional Information

  • See TechNote d2ab4470 for more information on ColdFusion MX/JRun and U.S. Daylight Savings Time changes in 2007
  • See TechNote tn_18310 for more information on working with daylight savings time in ColdFusion MX
Keywords: kb400365

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement