Format date time with local timezone #704
Unanswered
devmatteini
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm using the
custom-api
widget where my API is returning a JSON with adate
property which is a ISO8601 formatted date:I would like to display that date in the local timezone. For example, using Europe/Rome as timezone, and this layout
02/01/2006 15:04:05 MST
(from go docs), I would expect this string26/05/2025 19:38:48 CEST
, but it renders this instead26/05/2025 17:38:48 UTC
where the local timezone is ignored.My test glance.yml file:
With my very basic Go skills, I changed the
customAPIFuncParseTimeInLocation
implementation to make it work.I'm not sure if this is a bug or how it was intended to work.
Let me know if there is another way to solve this issue or if I should open a PR!
Beta Was this translation helpful? Give feedback.
All reactions