Преглед на файлове

Ignorar zona horaria al leer la fecha

Hugo преди 5 години
родител
ревизия
312f6f34b9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      ondemand/service.py

+ 1 - 1
ondemand/service.py

@@ -142,7 +142,7 @@ def process_queue_with_threads():
                 try:
                     item = queue.get(False)
                     station = item['station']
-                    date = dateutil.parser.parse(item['date'])
+                    date = dateutil.parser.parse(item['date'], ignoretz=True)
                     calibration = calibrations.get(station)
 
                     audios = [f for f in iterate_audios(