Skip to content

Commit 44e0835

Browse files
committed
Modified the ambiguous timestamp fixup scripts to cover the 3 last year instead of the last year.
- Legacy-Id: 10790
1 parent f9a4966 commit 44e0835

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/bin/fix-ambiguous-document-timestamps

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- Python -*-
33

44
"""
5-
This script looks at document timestamps going back one year, and if it finds
5+
This script looks at document timestamps going back three years, and if it finds
66
ambiguous timestamps, shifts them backwards one hour in order to disambiguate
77
them.
88
"""
@@ -23,7 +23,7 @@ from django.conf import settings
2323
from ietf.doc.models import Document, DocEvent
2424

2525
now = datetime.datetime.now()
26-
then = now - datetime.timedelta(days=365)
26+
then = now - datetime.timedelta(days=365*3)
2727

2828
for d in Document.objects.filter(time__gt=then).order_by('-time'):
2929
tz = pytz.timezone(settings.TIME_ZONE)

0 commit comments

Comments
 (0)