My graph has a small footnote which displays the time at which the graph was last updated - basically, I fetch new data for the graph and cache it periodically, so it might be useful for users to know how “recent” the graph they’re looking at is.
My only problem is that my webserver runs on UTC time, which means that the time displayed on the end user’s webpages is UTC time. While it’s easy for me to format the output display string to state that the time is “UTC”, this is still confusing for many - and even if people DO understand the concept of UTC, it’s a pain to have to do the mental calculation back to their local timezone. So, ideally, I’d like to display this information in the user’s local time zone.
Unfortunately, I have no idea how to accomplish this - datetime series, when displayed along a graph axis, are automatically converted to local time; however, I don’t know how to do a local-time trick for something displayed as “text” - ie, as part of a “Title” object.
Alternatively, I would need to insert some sort of placeholder text which would get automatically handled / replaced on the browser side.
Unfortunately, I have no idea how to do either of these. Any ideas? Thanks!