IBM Support

PM56758: EGL library function StrLib.formatDate writes wrong date for input dates 1.1.1900 or earlier in some non-US locales

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • EGL library function StrLib.formatDate writes wrong date for
    input dates
    1.1.1900 or earlier. Date is correctly formatted but is 1 day
    earlier.
    
    This has been observed to happen on non-US locales such as
    Finnish when default time zone is set to for example Finland's
    (in Java terms it's 'Europe/Helsinki')
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When a date is converted to a string, as happens when
    StrLib.formatDate is called, the result may be incorrect.
    It can happen when the date's year is earlier than 1902 with
    certain combinations of the JVM's default time zone and
    locale.  An example is January 1 1900 in "Europe/Helsinki".
    When converted to a string, the result is December 31 1899.
    

Problem conclusion

  • The problem has been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM56758

  • 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

    2012-01-26

  • Closed date

    2012-03-15

  • Last modified date

    2012-03-15

  • 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"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
28 October 2021