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