debug gmt
This commit is contained in:
@@ -163,9 +163,7 @@ class cls_caldav():
|
|||||||
|
|
||||||
def convert_to_gmt1(self, dt):
|
def convert_to_gmt1(self, dt):
|
||||||
gmt1_tz = pytz.timezone('Europe/Paris')
|
gmt1_tz = pytz.timezone('Europe/Paris')
|
||||||
utc_tz = pytz.utc
|
|
||||||
dt_utc = utc_tz.localize(dt)
|
|
||||||
dt_gmt1 = dt_utc.astimezone(gmt1_tz)
|
|
||||||
|
|
||||||
'''if hasattr(dt,"tzinfo") and dt.tzinfo is not None:
|
'''if hasattr(dt,"tzinfo") and dt.tzinfo is not None:
|
||||||
# Convertir l'objet datetime en GMT+1
|
# Convertir l'objet datetime en GMT+1
|
||||||
@@ -176,7 +174,7 @@ class cls_caldav():
|
|||||||
utc_tz = pytz.utc
|
utc_tz = pytz.utc
|
||||||
dt_utc = utc_tz.localize(dt)
|
dt_utc = utc_tz.localize(dt)
|
||||||
dt_gmt1 = dt_utc.astimezone(gmt1_tz)'''
|
dt_gmt1 = dt_utc.astimezone(gmt1_tz)'''
|
||||||
return dt_gmt1
|
return dt
|
||||||
def parse_data(self, events):
|
def parse_data(self, events):
|
||||||
desired_timezone = pytz.timezone('Europe/Paris')
|
desired_timezone = pytz.timezone('Europe/Paris')
|
||||||
for event in events:
|
for event in events:
|
||||||
|
Reference in New Issue
Block a user