esnet / esnet/react-timeseries-charts

Time axis support for arbitrary time zones

Open
#97 3 comments 0 reactions 0 assignees View on GitHub
:sparkles: enhancement
Dominant language
JavaScript
Stars
876
Forks
279
PR merge metrics
No merged PRs in 30d

Description

My time series consists of an array of [moment](http://momentjs.com/) objects which have an explicit UTC offset value. This offset is *not* generally the same as the user's local time zone. Is there any way to preserve the UTC offset when plotting with react-timeseries-charts? The only options that I can see in the documentation are to show times as local or as UTC.

Thanks in advance.

## Background information

I am working on an application to display GPS logger traces for glider pilots (a rewrite of [IGCWebView](https://github.com/glidingweb/igcwebview) using React). I would like to plot a graph of altitude against time, and it makes sense to use the time zone of the country where the flight took place. For example, I am in the UK (local time = UTC) but would like to see the time displayed as UTC + 10 when looking at logger traces from Australia. The `moment.format()` method takes care of this automatically.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.