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

[BUG] NightDate is off by one #822

Open
robertdstein opened this issue Mar 29, 2024 · 0 comments
Open

[BUG] NightDate is off by one #822

robertdstein opened this issue Mar 29, 2024 · 0 comments
Labels
bug Something isn't working database related to postgres/databases WINTER Project-specific issues relating to WINTER/Summer winterready needed by WINTER comissioning

Comments

@robertdstein
Copy link
Member

I'm not sure if this is deliberate, but the internal database "night" for WINTER is the utc date, while the directories have a 'night' too which is the local (i.e Pacific) evening. The night date in the database is therefore always off by one from the internal db night.

Relevant line:

header["NIGHTDATE"] = date_t.to_datetime().strftime("%Y-%m-%d")

@robertdstein robertdstein added bug Something isn't working database related to postgres/databases WINTER Project-specific issues relating to WINTER/Summer winterready needed by WINTER comissioning labels Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working database related to postgres/databases WINTER Project-specific issues relating to WINTER/Summer winterready needed by WINTER comissioning
Projects
None yet
Development

No branches or pull requests

1 participant