Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320619

Summary: SDODataHelper JavaDoc incorrectly says the JVM default timezone will take effect
Product: z_Archived Reporter: Philip Aston <philipa>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: rick.barkhouse
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Philip Aston CLA 2010-07-22 08:32:38 EDT
Build Identifier: 2.2.0

SDODataHelper says:

    /**
     * The specified TimeZone will be used for all String to date object
     * conversions. By default the TimeZone from the JVM is used.
     */
    public void setTimeZone(TimeZone timeZone) {

This is incorrect. GMT is actually used if the timezone is not specified.

Reproducible: Always
Comment 1 Rick Barkhouse CLA 2010-07-22 10:55:53 EDT
Created attachment 174989 [details]
Patch
Comment 2 Rick Barkhouse CLA 2010-07-22 12:05:20 EDT
Fixed, javadoc now reads:

    /**
     * The specified TimeZone will be used for all String to Date object
     * conversions.  By default the GMT time zone is used.
     */
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:29:40 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink