InvenTree/InvenTree/common
Oliver 610ea7b0b1
Report: Add date rendering (#6706)
* Validate timezone in settings.py

* Add helper functions for timezone information

- Extract server timezone
- Convert provided time to specified timezone

* Add more unit tests

* Remove debug print

* Test fix

* Add report helper tags

- format_date
- format_datetime
- Update report templates
- Unit tests

* Add setting to control report errors

- Only log errors to DB if setting is enabled

* Update example report

* Fixes for to_local_time

* Update type hinting

* Fix unit test typo
2024-03-14 12:09:14 +11:00
..
fixtures fix endline 2022-05-20 13:35:07 +02:00
migrations Project Responsible (#5944) 2023-11-21 23:13:20 +11:00
__init__.py startapp common 2019-09-03 08:30:14 +10:00
admin.py [CI] Enable python autoformat (#6169) 2024-01-11 11:28:58 +11:00
api.py Generate API docs (#6319) 2024-02-08 16:19:57 +11:00
apps.py [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
files.py [CI] Enable python autoformat (#6169) 2024-01-11 11:28:58 +11:00
forms.py [CI] Enable python autoformat (#6169) 2024-01-11 11:28:58 +11:00
models.py Report: Add date rendering (#6706) 2024-03-14 12:09:14 +11:00
notifications.py Handle null case for delivery_methods (#6411) 2024-02-05 21:24:59 +11:00
serializers.py Machine integration (#4824) 2024-02-14 14:13:47 +00:00
settings.py Handle more caching exception pathways (#6678) 2024-03-12 03:53:02 +00:00
tasks.py Fix news feed task timeout (#6250) 2024-01-17 17:52:52 +11:00
test_notifications.py [CI] Enable python autoformat (#6169) 2024-01-11 11:28:58 +11:00
test_tasks.py Fix news feed task timeout (#6250) 2024-01-17 17:52:52 +11:00
test_views.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
tests.py Reimplement error-report API endpoint (#6317) 2024-01-22 12:03:58 +00:00
urls.py [CI] Enable python autoformat (#6169) 2024-01-11 11:28:58 +11:00
views.py [CI] Enable python autoformat (#6169) 2024-01-11 11:28:58 +11:00