tests: gc: use timedelta (#8912)

Bug from https://github.com/iterative/dvc/pull/8880
This commit is contained in:
Ruslan Kuprieiev
2023-01-31 05:18:09 +02:00
committed by GitHub
parent 2690f05cee
commit 10184e9370
+1 -1
View File
@@ -334,7 +334,7 @@ def test_date(tmp_dir, scm, dvc):
tmp_dir.dvc_gen("testfile", "content", commit="add testfile")
now = datetime.datetime.now()
datestamp = now.date().replace(day=now.day + 1).isoformat()
datestamp = (now.date() + datetime.timedelta(days=1)).isoformat()
tmp_dir.dvc_gen("testfile", "modified", commit="modified")