How to change timezone? #6920
Answered
by
JanDeDobbeleer
Hentilador
asked this question in
Troubleshoot
-
|
Currently running oh-my-posh on termux with the hul10 theme, it shows system time in UTC and I want to change it how do I do that? Preferably Hongkong time UTC+8, I tried reading up on the sprig functions and it is very confusing and doesn't really give any examples of timezones other than UTC. |
Beta Was this translation helpful? Give feedback.
Answered by
JanDeDobbeleer
Oct 26, 2025
Replies: 1 comment 3 replies
-
|
@Hentilador you can use
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Hentilador
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Hentilador you can use
{{ dateInZone "2006-01-02" (now) "UTC" }}for this and adjustUTCto your time zone. This is based on the following: