My Oracle Support Banner

eScript Date Object (New Date()) Uses Wrong Time Zone In Linux Environment (Doc ID 2718343.1)

Last updated on OCTOBER 08, 2020

Applies to:

Siebel CRM - Version 15.18 [IP2015] and later
Information in this document applies to any platform.

Symptoms

The new Date() method on eScript shows incorrect date time by one hour in Linux Environment.

Changes

STEPS
-----------------------
The issue can be reproduced at will with the following script:

var dDate = new Date();
var tz = dDate.getTimezoneOffset() / 60;
Outputs.SetType("Offset: " + tz.toString() + " | Local: " + dDate.toString()
+ " | UTC: " + dDate.toUTCString() + " | GMT: " + dDate.toGMTString() );

When run in the BS Simulator at Fri Apr 16 09:02:14 EDT 2010, this code returned this output:

Offset: 3
| Local: Fri Apr 16 2010 10:02:01
| UTC: Fri Apr 16 2010 13:02:01 GMT
| GMT: Fri Apr 16 2010 13:02:01 GMT

Expected output:

Offset: 4
| Local: Fri Apr 16 2010 09:02:01
| UTC: Fri Apr 16 2010 13:02:01 GMT
| GMT: Fri Apr 16 2010 13:02:01 GMT

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.