Jun Omae (大前 潤)

Results 13 comments of Jun Omae (大前 潤)

Hi, Vietnamese is the only locale which the time part is put before the date part, as far as I know. [Babel](http://babel.edgewall.org/) which Trac uses is a Python interface to...

I'm unsure what is your local timezone but `datetime.astimezone()` should be used rather than `datetime.replace(tzinfo=...)`. ```pycon >>> from datetime import datetime >>> from babel.dates import get_timezone >>> t = datetime(2024,...

> ```py > > utc_revision_date = datetime.fromtimestamp(int(unix_timestamp), tz=timezone.utc) > > loc_revision_date = utc_revision_date.replace( > > tzinfo=get_timezone("UTC") > > ).astimezone(get_timezone(time_zone)) > > ``` You could change that code like the following,...

That is not a defect. In CLDR 42, `morning` is declared for period 6:00 >> import babel >>> babel.__version__ '2.12.1' >>> import datetime >>> from babel import dates >>> dates.format_time(datetime.time(5,...

I don't think it is a bug of Babel. The name of the timezone in the formatted datetime is depended the given locale, so that it is needed to pass...

Babel still supports Python 3.8 which doesn't have `zoneinfo`. Also `pytz` is optional for Python 3.9+ but Babel allows to use `pytz` if a user want to use `pytz` rather...

Ah, I was stupid. But the message "day is out of range for month" confused me. I'd suggest to add the expected date pattern to the message of the exception....

It is easy to reproduce the apache crashing by the fault in mod-wsgi module. ``` $ curl -H 'Authorization: Basic XXXX' http://hostname/path/to/auth ```

+1 for using ISO-8859-1. I consider that mod-wsgi should use same encoding in both `user` parameter of `check_password` and `environ['REMOTE_USER']` in order to be the same value (as WSGI "bytes-as-unicode"...

I just tried develop branch with Python 3.10. Confirmed the issue goes away. Thanks.