Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the timezone configurable #90

Open
billdirks opened this issue Sep 19, 2019 · 0 comments
Open

Make the timezone configurable #90

billdirks opened this issue Sep 19, 2019 · 0 comments
Labels

Comments

@billdirks
Copy link

When one runs mobility-metrics one passes in a date without a timezone. There is an implicit assumption that the timezone of the machine running the code is the same as the timezone of the city whose data one is querying. That is the start and stop times are derived in cache.js from the variable var day = moment(dayString, "YYYY-MM-DD"); which uses the local system time.

It would be great to be able to configure the timezone, perhaps as a top level key/value pair in the configuration file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants