Hi,
I am on UTC+1 (MEZ) timezone. I was filing a test nsl between 00:00 and 01:00 am. During this period of time the day of the archive url was 1 day past the day of the Submission object.
The dst calculation seems to be correct (this time without dst, winter time +00:00):
2019-03-15 00:00:14+00:00
But the hour is too low by 1 and thus the day gets also too low by one during 00:00 and 01:00 am.
The timestamp given should read as: 2019-03-15 01:00:14+00:00
Curios because the day gets calculated from the model's get_absolute_url(self) method of the Submission object, which uses:
publish_date = models.DateTimeField( verbose_name=_('publication date'), blank=True, null=True, default=now, db_index=True )
The archive template makes use of this method and the Submission object holds it.
So from where do we get the deviation of 1 day for 1 hour?
Hi,
I am on UTC+1 (MEZ) timezone. I was filing a test nsl between 00:00 and 01:00 am. During this period of time the day of the archive url was 1 day past the day of the Submission object.
The dst calculation seems to be correct (this time without dst, winter time +00:00):
2019-03-15 00:00:14+00:00But the hour is too low by 1 and thus the day gets also too low by one during 00:00 and 01:00 am.
The timestamp given should read as:
2019-03-15 01:00:14+00:00Curios because the day gets calculated from the model's
get_absolute_url(self)method of the Submission object, which uses:publish_date = models.DateTimeField( verbose_name=_('publication date'), blank=True, null=True, default=now, db_index=True )The archive template makes use of this method and the Submission object holds it.
So from where do we get the deviation of 1 day for 1 hour?