How to convert local time to gmt/utc?

Hi,
I’m trying to convert local to gmt by using the timezone offset but it appears math operations do not with the timezone offset.

([HOUR_0_23]+([TMZN_OFS_WITH_DST]*-1)

Any idea how I can convert?

Try this. Code is huge, ugly but works. I’m not sure about how often these tag expressions are refreshed

((-1)*([HOUR_0_23]+(((((((((((((((((((((((((([TMZN_OFS_WITH_DST]=="-12"?(-12):0)+([TMZN_OFS_WITH_DST]=="-11"?(-11):0))+([TMZN_OFS_WITH_DST]=="-10"?(-10):0))+([TMZN_OFS_WITH_DST]=="-9"?(-9):0))+([TMZN_OFS_WITH_DST]=="-8"?(-8):0))+([TMZN_OFS_WITH_DST]=="-7"?(-7):0))+([TMZN_OFS_WITH_DST]=="-6"?(-6):0))+([TMZN_OFS_WITH_DST]=="-5"?(-5):0))+([TMZN_OFS_WITH_DST]=="-4"?(-4):0))+([TMZN_OFS_WITH_DST]=="-3"?(-3):0))+([TMZN_OFS_WITH_DST]=="-2"?(-2):0))+([TMZN_OFS_WITH_DST]=="-1"?(-1):0))+([TMZN_OFS_WITH_DST]=="0"?0:0))+([TMZN_OFS_WITH_DST]=="12"?(12):0))+([TMZN_OFS_WITH_DST]=="11"?(11):0))+([TMZN_OFS_WITH_DST]=="10"?(10):0))+([TMZN_OFS_WITH_DST]=="9"?(9):0))+([TMZN_OFS_WITH_DST]=="8"?(8):0))+([TMZN_OFS_WITH_DST]=="7"?(7):0))+([TMZN_OFS_WITH_DST]=="6"?(6):0))+([TMZN_OFS_WITH_DST]=="5"?(5):0))+([TMZN_OFS_WITH_DST]=="4"?(4):0))+([TMZN_OFS_WITH_DST]=="3"?(3):0))+([TMZN_OFS_WITH_DST]=="2"?(2):0))+([TMZN_OFS_WITH_DST]=="1"?(1):0)))))

Thanks for providing that but that seems a bit overkill.

It would be nice if there was some way for developers to create custom tag expressions with a little bit of java or kotlin coding.

Is there some way to request such features?

Hi,

If you are interested to make your own design you can develop watch face using android. Here is the guide for developing watch face for wear OS in android Create a watchface for Wear OS  |  Android Developers

Its your only choice for now. Problem is, [TMZN_OFS_WITH_DST] is string type variable. You can wait for another WFS update but there’s no ETA. I believe this was requested / asked about few weeks ago.

Depends on how often these tag expressions are calculated. If they are calculated every time variable within them changes then I think this wouldnt cause any lag / battery drain problems.