I want convert custom string time on UTC between different time zones defined as GMT.
I general all answers that is here ok. But some question is with this examples:
1.TZ='GMT-07' date --date='TZ="UTC" 00:34'
07:34:00 +0700
2.TZ=':America/Vancouver' date --date='TZ="UTC" 00:34'
17:34:00 -0700
Why differ result when I try use GMT for destination TZ?
This City have same GMT.
P.S. So I found solution with GMT destination on result by time and wrong TZ display.
TZ='UTC' date --date='TZ="GMT-07" 00:34'
17:34:00 +0000