mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
use zoneinfo instead of pytz
Signed-off-by: Oliver Lippert <info@trusty.codes> #267
This commit is contained in:
parent
182cea3385
commit
c3b5b47b22
@ -1,9 +1,9 @@
|
|||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
|
import zoneinfo
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
import pytz
|
|
||||||
from django.test import override_settings
|
from django.test import override_settings
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
@ -69,7 +69,7 @@ class TestDocument(TestCase):
|
|||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
pytz.timezone("Europe/Berlin"),
|
zoneinfo.ZoneInfo("Europe/Berlin"),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
self.assertEqual(doc.get_public_filename(), "2020-12-25 test.pdf")
|
self.assertEqual(doc.get_public_filename(), "2020-12-25 test.pdf")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user