Change Label Time format?


I am using the historical playback from the ignition exchange and for some reason the time on the label is off by 5 hours and in a strange format in the realtime mode, but everywhere else I look is the correct time and format??(the script shows the right time, and the text property shows the correct time as well) Does anyone know why it is doing that? historical mode the label works fine

I just took a tags timestamp value and put it on a label and it is also displaying correctly in the text property , but in this other format with the offset on the screen , I did it on this one because I wanted it so if I toggle this tag it will show when it was changed , but I am stuck with the same issue

I figured it out!

dateFormat(toDate({[System]Gateway/CurrentDateTime}), “yyyy-MM-dd HH:mm:ss”)

is the answer