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