Time Zone issue

Hi,

I have a scenario where my Database is in GMT and I am trying to convert it to EST time by using GMT function  gmt(property(local!data,"XXX",{}),"EDT") its working fine during night time but when this function is executed during day time its giving current date-1.

Any solution for this would be really appreciated.

  Discussion posts and replies are publicly visible

Parents Reply
  • As a side note, I would recommend moving away from the use of load() and with() and migrating toward the newer a!localVariables() function for variable declarations.

    To clarify on the date situation here, are you trying to always use the exact date value of what is in the DB, or do you need to add an offset for timezone, which will change the date at certain times of the day?

    If you just want a straight date, try:

    if(
        rule!APN_isEmpty(ri!dateValue),
        "",
        date(
          year(ri!dateValue),
          month(ri!dateValue),
          day(ri!dateValue)
        )
    )

Children
No Data