| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Automated conversion initially applied with
https://github.com/warlo/codemod-unittest-to-pytest-asserts,
followed by some manual changes for brevity.
|
|\
| |
| | |
Add support for `b` and `B` period symbols in time format
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
``parse_date()`` does not allow the user to specify the date's format
and the 'medium' format is used by default in the call to
``get_date_format()`` on line 1144.
This results in a failure to parse the date in short format for the
locale 'sv_SE'. This commit adds the format argument to avoid this
failure. The default value is set to 'medium' to preserve the old behavior.
Fixes #657
Co-authored-by: Aarni Koskela <akx@iki.fi>
|
| |
|
|
|
|
|
|
|
| |
Refs #442
Co-authored-by: David Bauer <david.bauer009@gmail.com>
Co-authored-by: Arthur Jovart <arthur@jovart.com>
|
| |
|
|
|
|
|
| |
* Update copyright year
* Update changelog
|
|
|
|
| |
The earlier patch resulted in `unsupported operand type(s) for -: 'datetime' and 'datetime'` on Pypy3.
|
|\ |
|
| | |
|
|/
|
| |
Fixes #740
|
| |
|
|
|
|
| |
Fixes #624
|
|
|
|
|
|
|
|
| |
The weeknumber was calculated to 53, but by definition the value must compute to 1.
the fix will compute the weeknumber by using date.isocalendar if locale.first_week_day == 0.
Also the computation of the year format 'YYYY' is replaced by isocalendar.
|
| |
|
|
|
|
| |
Fixes #398
|
| |
|
|
|
|
| |
Fixes #485
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CLDR 31.0 separated the GMT and UTC time zones, so formatting of that
time zone has changed. Most notably, "UTC" replaces "+0000" when formatting
the timezone. This could break code that expects +0000.
A subset (the parts supported by Babel) of the migration guide from
http://cldr.unicode.org/index/downloads/cldr-31:
* The locales in the language-territory population tables have been changed to
be the canonical format, dropping the script where it is the default.
So "ku_Latn" changes to "ku".
* Plural rules: The Portuguese plural rules have changed so that all
(and only) integers and decimal fractions < 2 are singular.
* Timezones: The GMT timezone has been split from the UTC timezone.
* Timezones: New timezone bcp47 codes have been added.
* Languages "hr" and "sr" are no longer a short distance apart, for political reasons.
* The primary names for CZ changed from "Czech Republic" to
"Czechia", with the longer name now the alternate.
|
|
|
|
|
|
| |
Thanks to @stringtheory for the bug report!
Fixes #428
|
|
|
|
|
|
| |
In summer time zones, the test for "get_timezone_name" failed because the
construct used to obtain a local time did not deal properly with DST offsets.
As recommended by pytz, it is better to convert to local time from UTC.
|
|
|
|
|
|
|
|
| |
`zh_Hant` locale data does not have names for the
`am` and `pm` day periods in the `format`/`abbreviated` context,
so fallback logic is added to deal with that eventuality.
Fixes #378
|
| |
|
|\
| |
| | |
Add pre-commit and apply fixes
|
| | |
|
| |
| |
| |
| | |
Added test cases and additional pattern for Weekday format
|
| |
| |
| |
| | |
Added test cases and additional pattern for quarter format
|
|/
|
|
| |
Fixes https://github.com/python-babel/babel/issues/350
|
|
|
|
| |
https://github.com/python-babel/babel/issues/325
|
|
|
|
|
|
|
| |
Added argument 'return_z' and two values 'iso8601' and 'iso8601_short'
in argument width in get_timezone_gmt(), 'return_city' argument is add
in get_timezone_location() and 'return_zone' in get_timezone_name() so
we can implement iso8601 timezone patterns.
|
| |
|
|
|
|
|
|
|
|
| |
The skeletons for dates and times are described on
http://cldr.unicode.org/translation/date-time-patterns under
Additional Date-Time Formats. And are useful when you want to some more
control over formatting dates and times but don't want to force all
locales to use the same pattern.
|
|
|
|
|
|
|
|
|
|
| |
* Aside from the usual data changes, the provisional aa locale is no longer,
so we can't use it for tests. Instead, ii is used (chosen by virtue of ii.xml
being fairly small, i.e. probably as incomplete as aa).
* ms_Latn_SG is not in use anymore either; use sr_Latn_ME instead.
Closes #226
Closes #290
|
|
|
|
|
|
| |
form of the month
Fixes #288
|
| |
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| | |
Fixed tests to account for various minor changes in cldr-24.
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|