Commit Graph

14 Commits

Author SHA1 Message Date
Christopher C. Wells 1d9577a192 Sync moment and Django formats for PT and TR
Fixes #498 and #532
2023-02-11 17:41:17 -08:00
Christopher Charbonneau Wells d74f35d765
Handle format customization in middelware (#332)
This is done to allow for format difference between `en-US` (`en`) and `en-GB` that are not well supported by Django's format handling.
2021-11-12 10:13:08 -08:00
Christopher C. Wells 0c0d4baf41 Combine `en` and `en_GB` date input formats 2021-10-26 19:55:16 -07:00
Christopher C. Wells 1aad600f6c Only use `SHORT_MONTH_DAY_FORMAT` with supported locales
Closes #276
2021-08-06 08:24:07 -07:00
Christopher C. Wells 16c34ca7f0 Add test for custom date format 2021-08-01 04:42:38 -07:00
Christopher C. Wells 94cb7d771a Use short datetime string for lists 2021-08-01 04:42:38 -07:00
Christopher C. Wells d138558158 Concatenate (not append) DATETIME_INPUT_FORMATS (#148) 2020-07-22 21:13:56 -07:00
Christopher C. Wells 1eb02f436b Correct minute directive in DATETIME_INPUT_FORMATS (#148) 2020-07-22 20:27:44 -07:00
Christopher C. Wells 6f7ec903cc Add missing commas in list definition (#148) 2020-07-22 20:14:07 -07:00
Christopher C. Wells 81ec4c7fb9 Add SHORT_DATETIME_FORMAT format (#148) 2020-07-22 19:56:11 -07:00
Christopher C. Wells 4d71f9c5ec Add 24 hour time format override support to input fields (#148) 2020-07-21 22:03:08 -07:00
Christopher C. Wells d5dc329cf8 Add USE_24_HOUR_TIME_FORMAT setting (#148) 2020-07-21 20:46:46 -07:00
Christopher C. Wells e1d17759de Do not use imports in custom formats file
Using imports here apparently does not work as all the formats have to get
loaded before the new ones can be added, which means that the newly added
formats do not get recognized until the application restarts.

Fixes #90, again.
2020-01-21 07:22:30 -08:00
Christopher C. Wells cc0eef33a8 Add support for additional datetime input formats
The frontend library uses an datetime strong format for it's base language (US English)
that is not supported by Python's datetime. This commit adds custom formats to
support the frontend strings.
2020-01-20 15:50:35 -08:00