APAR status
Closed as program error.
Error description
Environment: Windows XP Rational Business Developer 7.5.1.6 Description: The Date calculations that involve values being assigned from a String are working correctly, but if the value is coming from CurrentDate or TextField.text, the calculation does not work correctly. Example: RUIhandler {initialUI = [],onConstructionFunction = initialization, cssFile='css/test.css'} function calculateDate(dateD date in) SysLib.writeStdout('date: ' + dateD); dateD -= 0; SysLib.writeStdout('-0 days: ' + dateD); dateD -= 1; SysLib.writeStdout('-1 days: ' + dateD); end function initialization() dateD date = currentDate(); calculateDate(dateD); dateS String = currentDate(); dateD = dateS; calculateDate(dateD); end end // Result: //date: 10/14/2010 //-0 days: 10/15/2010 //-1 days: 10/14/2010 //date: 10/14/2010 //-0 days: 10/14/2010 //-1 days: 10/13/2010 .
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** Date calculations in JavaScript may yield the wrong answer, unless the date was created from a string. The result of the calculation may be incorrect by one day, depending on the current time and time zone.
Problem conclusion
The problem has been fixed.
Temporary fix
Comments
APAR Information
APAR number
PM26298
Reported component name
RATL BUS DEV
Reported component ID
5724S5000
Reported release
751
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-11-09
Closed date
2011-05-06
Last modified date
2011-05-06
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
RATL BUS DEV
Fixed component ID
5724S5000
Applicable component levels
R751 PSN
UP
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]
Document Information
Modified date:
06 May 2011