ColdFusion 10.0  -  Bug 3200965

Created on Tuesday, May 29, 2012

Login for more options

Title

SerializeJSON returns wrong date for UTC date

Description

Problem Description: If you convert a Now() to UTC and then send it through SerializeJSON, it returns the local datetime and not the UTC datetime.

Steps to Reproduce: <cfdump var="#SerializeJSON(DateConvert('local2UTC',Now()))#" />

Actual Result: The above statement returns the local date time.

Expected Result: It should actually be the UTC date time.

Any Workarounds: Pass the date time as string to serialize.

Test Configuration

My Hardware and Environment details:

App Language(s) English
OS Language(s) English
Platform(s) Win 2008 Server R2 64 bit
Browser(s) Browsers All

Notes (3)

  • samihoda2

    7:56:47 AM GMT+00:00 Oct 1, 2012

    This is a pain.

  • BenNadel

    6:30:17 AM GMT+00:00 Sep 28, 2012

    I also ran into this problem last night - Mac OS X.

  • aneasytorememberid

    3:06:41 PM GMT+00:00 May 29, 2012

    I wasn't sure what product area this goes under!

Duplicate ID
Reported By aneasytorememberid

Status

State Closed
Status Fixed
Reason

Importance

Priority 3-High
Frequency All users will encounter
Failure Type Incorrectly Functioning
Product Area AJAX

Build

Found In Build Final
Fixed In Build 283493

Attachments (0)

No Files Attached

Votes (0)

Your session has expired! Click to login
Current form data will be preserved

Cancel