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)


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)