File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -823,7 +823,11 @@ def _publish_suite_dists(
823
823
set_deb822_value (entry , 'Version' , rss .suite .version )
824
824
set_deb822_value (entry , 'Codename' , suite_codename )
825
825
set_deb822_value (entry , 'Label' , suite_label )
826
- entry ['Date' ] = datetime_to_rfc2822_string (datetime .utcnow ())
826
+
827
+ # we set the date to 2 minutes in the past to guard against clock sync issue when updating
828
+ # rapidly and some clients are a bit behind the master clock (which should not happen, but
829
+ # sometimes does)
830
+ entry ['Date' ] = datetime_to_rfc2822_string (datetime .utcnow () - timedelta (minutes = 2 ))
827
831
if not rss .frozen and not only_sources :
828
832
entry ['Valid-Until' ] = datetime_to_rfc2822_string (datetime .utcnow () + timedelta (days = 8 ))
829
833
entry ['Acquire-By-Hash' ] = 'yes'
You can’t perform that action at this time.
0 commit comments