[Git][reproducible-builds/reproducible-website][master] Correct reference to monthlen.
Chris Lamb
gitlab at salsa.debian.org
Mon Mar 2 23:05:06 UTC 2020
Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website
Commits:
423203ae by Chris Lamb at 2020-03-02T15:03:59-08:00
Correct reference to monthlen.
- - - - -
1 changed file:
- bin/generate-draft
Changes:
=====================================
bin/generate-draft
=====================================
@@ -78,7 +78,7 @@ def get_data(year, month, max_age=3600):
month_start = datetime.datetime(year=year, month=month, day=1)
month_end = month_start.replace(
- day=calendar.monthlen(year, month), hour=23, minute=59
+ day=calendar.monthrange(year, month)[1], hour=23, minute=59
)
month_start_ts = int(month_start.timestamp())
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/423203ae31d432a04fafb45c3da686b2cc0546ae
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/423203ae31d432a04fafb45c3da686b2cc0546ae
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200302/595e1a6b/attachment.htm>
More information about the rb-commits
mailing list