New Magic Text to get local time

Dm114

Well-known member
For some reason MD Shell Script
date -d @[system_time] +%X
doesn't return local time but UTC time.

I've been using for years following Shell Script
date -D %Y%m%d%H%M%S -d 19700101000000 +%s
to get what I call "TimeZone in seconds", a signed Global integer variable (TZin2nd) which is updated by a macro triggered by an Intent ...TIMEZONE_CHANGED.

Would it be possible to get such a MagicText to convert more easily sytem time(s) to local time(s)?
 
Top