#31711: WeekArchiveView seens to be zero based for week, instead of one based
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
RichardZimmerEschborn |
Type: Uncategorized | Status: closed
Component: Generic views | Version: 2.2
Severity: Normal | Resolution: invalid
Keywords: ArchiveView, Week, | Triage Stage:
bug | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* status: new => closed
* resolution: => invalid
* component: Uncategorized => Generic views
Comment:
It's documented that the `week_format` attribute is a `strptime()` format
string used to parse the week number and in
[https://docs.python.org/3/library/time.html#time.strptime strptime()
docs] you can find:
- `%U` - Week number of the year (Sunday as the first day of the week) as
a decimal number [00,53]. All days in a new year preceding the first
Sunday are considered to be in week **0**.
- `%W` - Week number of the year (Monday as the first day of the week) as
a decimal number [00,53]. All days in a new year preceding the first
Monday are considered to be in week **0**.
--
Ticket URL: <https://code.djangoproject.com/ticket/31711#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/079.7a953f5d89a0be4262eda20184b39aae%40djangoproject.com.