EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

DateTimeLib.currentDate() returns wrong date

  • 1.  DateTimeLib.currentDate() returns wrong date

    Posted Mon June 27, 2016 09:42 AM

    Very Very occasionally, DateTimelib.currentDate() seems to return a date far in the past.

    I have only been able to observe this through data writen to our database. This is very simple function which fills the databaserecord and excecutes an add function.

    As it probably occurs somewhere like once every 1million calls, it is very difficult to troubleshoot.

     

    This is problematic for us as some functions which later search within a certain range of dates don't return the correct values.

     

    Has anyone encountered this?

    Does any one know what's happening behind the curtain? (We are deploying java webservices to websphere on an Iseries machine)

     

    Thanks in advance,

     

    Bram

    Bram_Callewaert


  • 2.  Re: DateTimeLib.currentDate() returns wrong date

    Posted Tue June 28, 2016 01:42 AM

    Hi Bram,

    Are you 100% sure your EGL program is the only process writing or updating these records?

    Which date, far in the past, is written? Does this happen to be 31/12/1899?

    Guus

    gweis


  • 3.  Re: DateTimeLib.currentDate() returns wrong date

    Posted Tue June 28, 2016 02:19 AM

    Hi,

     

    Thanks for responding!

    I am sure this is inserted by EGL and not updated since.

     

    The dates are not the same. The last one was 1/1/1999, but I have had about 10 different dates over the last year.

     

    Kind regards,

     

    Bram
     

    Bram_Callewaert