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

Timezone-related improvements #1055

Merged
merged 1 commit into from
Sep 10, 2023
Merged

Timezone-related improvements #1055

merged 1 commit into from
Sep 10, 2023

Conversation

sea-kelp
Copy link
Collaborator

@sea-kelp sea-kelp commented Sep 9, 2023

Description of Changes

Several misc timezone-related changes:

Notes for Deployment

None!

Screenshots (if appropriate)

N/A

Tests and linting

  • This branch is up-to-date with the develop branch.
  • pytest passes on my local development environment.
  • pre-commit passes on my local development environment.

@sea-kelp sea-kelp marked this pull request as ready for review September 9, 2023 23:17
def thousands_seperator(value: int) -> str:
"""Convert int to string with the appropriately applied commas."""
return f"{value:,}"
app.template_filter("capfirst")(capfirst_filter)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume these were moved to make testing easier?

Copy link
Collaborator

@michplunkett michplunkett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@michplunkett michplunkett merged commit 15bc056 into develop Sep 10, 2023
2 checks passed
@michplunkett michplunkett deleted the tz-improvements branch September 10, 2023 00:23
sea-kelp added a commit to OrcaCollective/OpenOversight that referenced this pull request Sep 25, 2023
<!-- New Contributor? Welcome!

We recommend you check your privacy settings, so the name and email
associated with
the commits are what you want them to be. See the contribution guide at

https://github.com/lucyparsons/OpenOversight/blob/develop/CONTRIB.md#recommended-privacy-settings
for more infos.

Also make sure you have read and abide by the code of conduct:

https://github.com/lucyparsons/OpenOversight/blob/develop/CODE_OF_CONDUCT.md

If this pull request is not ready for review yet, please submit it as a
draft.
-->
Several misc timezone-related changes:
* Validate input to /timezone
* Remove pytz dependency
https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html
* Include timezone in local_time and local_date_time output
* Add tests for jinja filters
* Fix typo `thousands_seperator` -> `thousands_separator`
* Revert change to make session cookie permanent

None!

N/A

 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
sea-kelp added a commit to OrcaCollective/OpenOversight that referenced this pull request Sep 25, 2023
<!-- New Contributor? Welcome!

We recommend you check your privacy settings, so the name and email
associated with
the commits are what you want them to be. See the contribution guide at

https://github.com/lucyparsons/OpenOversight/blob/develop/CONTRIB.md#recommended-privacy-settings
for more infos.

Also make sure you have read and abide by the code of conduct:

https://github.com/lucyparsons/OpenOversight/blob/develop/CODE_OF_CONDUCT.md

If this pull request is not ready for review yet, please submit it as a
draft.
-->
Several misc timezone-related changes:
* Validate input to /timezone
* Remove pytz dependency
https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html
* Include timezone in local_time and local_date_time output
* Add tests for jinja filters
* Fix typo `thousands_seperator` -> `thousands_separator`
* Revert change to make session cookie permanent

None!

N/A

 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
sea-kelp added a commit to OrcaCollective/OpenOversight that referenced this pull request Oct 9, 2023
<!-- New Contributor? Welcome!

We recommend you check your privacy settings, so the name and email
associated with
the commits are what you want them to be. See the contribution guide at

https://github.com/lucyparsons/OpenOversight/blob/develop/CONTRIB.md#recommended-privacy-settings
for more infos.

Also make sure you have read and abide by the code of conduct:

https://github.com/lucyparsons/OpenOversight/blob/develop/CODE_OF_CONDUCT.md

If this pull request is not ready for review yet, please submit it as a
draft.
-->
Several misc timezone-related changes:
* Validate input to /timezone
* Remove pytz dependency
https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html
* Include timezone in local_time and local_date_time output
* Add tests for jinja filters
* Fix typo `thousands_seperator` -> `thousands_separator`
* Revert change to make session cookie permanent

None!

N/A

 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
AetherUnbound pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Nov 11, 2023
<!-- New Contributor? Welcome!

We recommend you check your privacy settings, so the name and email
associated with
the commits are what you want them to be. See the contribution guide at

https://github.com/lucyparsons/OpenOversight/blob/develop/CONTRIB.md#recommended-privacy-settings
for more infos.

Also make sure you have read and abide by the code of conduct:

https://github.com/lucyparsons/OpenOversight/blob/develop/CODE_OF_CONDUCT.md

If this pull request is not ready for review yet, please submit it as a
draft.
-->
Several misc timezone-related changes:
* Validate input to /timezone
* Remove pytz dependency
https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html
* Include timezone in local_time and local_date_time output
* Add tests for jinja filters
* Fix typo `thousands_seperator` -> `thousands_separator`
* Revert change to make session cookie permanent

None!

N/A

 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants