KWGT unix timestamp $df$ formatting bug

Hi everyone. So I noticed that displayed unix timestamp with df(format, g(v(tsg)) is different when multiplying global variable with *1 → df(format, g(v(tsg)*1) . Latter is correct.

tsg is global text variable with unix timestamp.

See image - order of text items and formulas is as follows:

  1. $df(M’M’d’d’hh’h’mm’m’ss’s’z, gv(tsg)*1)$

  2. $df(M’M’d’d’hh’h’mm’m’ss’s’z, gv(tsg))$

  3. $gv(tsg)$

  4. tsg = “1772993200”

KWGT version: 3.81b530915

Phone: Galaxy Ultra24, One UI 8.0, Android 16.

Hi @ajgnom ,

Here is my tip:

“Convert” the value of the Text global variable to millisecond, using the $df(S,gv(tsg))$ function or the $tc(fmt, "%s", gv(tsg))$ function.

Then display it with the preferred datetime format.

EXAMPLE 1

EXAMPLE 2

I hope this would help.

:smiling_face::+1: