Ankündigung

Einklappen
Keine Ankündigung bisher.

Get current logged in user timezone Id and to check it against a string

Einklappen
X

Get current logged in user timezone Id and to check it against a string

Einklappen
  • Filter
  • Zeit
Alles löschen
neue Beiträge

  • Get current logged in user timezone Id and to check it against a string

    #set($timezone = $User.getTimeZone()). I am getting timezone from this. But I would like get id from timezone and use it to compare against a string value and perform logic. Is there a way to do this.
    #if (id ="Europe/Berlin")
    Do Something
    #else if (id = "CST")
    Do Something
    #end.
    Can someone let me know if it is possible or any other way to achieve this. Thanks

  • #2
    Hi,
    you can use $User.getTimeZoneId() ( see http://docs.intrexx.com/intrexx/vers...ager/User.html )
    This returns the Timezone ID, which is e.g. Europe/Berlin
    Hope this helps.
    br
    Kerstin

    Kommentar


    • #3
      Thanks it works

      Kommentar

      Lädt...
      X