P3002 As of Date in Bill of Material Shows 1 Day Behind Until 10:00 AM
Purpose of Document
User is in Sydney (Australia ) where current time is (GMT +10:00). There is a problem in 'Work with bill of Material (P3002)' because As of Date shows 1 day behind until 10.00AM, then the correct date is displayed.
Time flag in Enterprise Manager appears as GMT time: Page Refreshed Feb 16, 2010 1:07:53 AM GMT (Current Local time is 11:07:53 AM)
Time flag in JAS debug shows GMT Time not GMT +10:00
System date (date_today) in JAS reflects GMT, not local time (= GMT +10:00)
Time zone in Server Manager reflects GMT timezone, not local time displayed in the Deployment Server
As of Date in Form "Work with Bill of Material" (P3002) appears one day earlier
Transaction Dates in Sales Order Entry (P4210) and Purchase Order Entry (P4310) are also incorrect
To fix this issue, refer <Bug 11025827>: SMMC TIME STAMP AGENT LOG FILE - SAR: 8944806
Final resolution for this SAR:- The issue is with the GetDefaultTimezone method of java.util.TimeZone class. This returns the timezone as GMT on windows 2008 machines. This issue is fixed in jre 1.5.0_10. Issue was reproduced with this version of jre. When tested with 1.5.0_18 the issue was no longer reproducible.
What this message reads is that GMT time description is a bug of JDK rather than wrong setting/input.
For this example, the way it set As of Date in P3002 is by through system function date_today
// Assign today's date if proc option demands If PO cDefaultDate is equal to "1" FC Effective From Date = date_today() Else FC Effective From Date = "*" End If
Same routines are to be found in defaulting Order Date (TRDJ - Date - Transaction) through Sales Order Entry (P4210) and Purchase Order Entry (P4310)
Order Date can be different from Audit Date (e.g., PMT/TDAY (Time - Last Updated/Time of Day)). <Document 1083571.1> E1: 42: Audit Information in Sales Order Processing
This issue is specific to Oracle Application Server (OAS), not Webshpere Application Server (WAS)
In capturing jas debug.log, time flag may not reflect machine time of HTML/JAS server
If similar issue occurs in Server Manager, check the JRE/JDK version in the deployment server (in a typical configuration)
In some applications, Today's Date will be assigned by the business function GetAuditInfo which is running in JAS. The reason is that GetAuditInfo in JAS will be business method (another set of function in JAS). For details refer to E1: BSFN: Frequently Asked Questions on Business Functions Running on JAS Document 1090584.1
This solution does not cover when the physical time of the HTML server is different from the timezone of Java Instance. If a different time zone for JAS instance is needed (e.g.,a machine is in the US but an end-user who accesses JAS is in Australia) then the timezone of JAS instance must be Australian Timezone) Refer to E1: JAS: How to Change HTML server TimeZone Document 1260014.1?
Refer to minimum technical requirements when any upgrade to a tools release is performed.