Skip to content

refactor handling of timezones #7

@windcrusader

Description

@windcrusader

At the moment the tool handles timezones in a mostly ok manner, just not that generically. Ideally, in the WeeWx tradition, all time processing should be done in UTC, and conversion to local time handled at the last second before output processing.

What needs to happen is that there should be a new "pre/post-processor" module that converts the passed time into UTC before passing to any tide generation function. The module could then convert to local as a final step when required.

It should be able to:

  1. convert a single date time to/from local time from/to UTC
  2. convert a list of date times to/from local time from/to UTC

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions