mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-02-16 19:50:41 +01:00
set timezone to Rome (#153)
This commit is contained in:
parent
f04942eefe
commit
cb0fe7b5fc
@ -2,6 +2,7 @@ import importlib.resources
|
|||||||
import os
|
import os
|
||||||
from collections import UserList
|
from collections import UserList
|
||||||
from datetime import datetime, timedelta, timezone
|
from datetime import datetime, timedelta, timezone
|
||||||
|
import time
|
||||||
from typing import Union
|
from typing import Union
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|
||||||
@ -36,6 +37,12 @@ def generate_publication_status(published):
|
|||||||
return PublicationStatus.COMPLETED if published else PublicationStatus.WAITING
|
return PublicationStatus.COMPLETED if published else PublicationStatus.WAITING
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(autouse=True)
|
||||||
|
def set_timezone():
|
||||||
|
os.environ["TZ"] = "Europe/Rome"
|
||||||
|
time.tzset()
|
||||||
|
|
||||||
|
|
||||||
def generate_event_status(published):
|
def generate_event_status(published):
|
||||||
return (
|
return (
|
||||||
EventPublicationStatus.COMPLETED
|
EventPublicationStatus.COMPLETED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user