فهرست منبع

fix con zona horaria para calculo de dias

Roberto Pineda 1 سال پیش
والد
کامیت
3299143df7
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. BIN
      m22_planning/models/__pycache__/planning_slot.cpython-38.pyc
  2. 2 2
      m22_planning/models/planning_slot.py

BIN
m22_planning/models/__pycache__/planning_slot.cpython-38.pyc


+ 2 - 2
m22_planning/models/planning_slot.py

@@ -48,8 +48,8 @@ class PlanningSlot(models.Model):
 
             # Calcular los días laborables del mes completo
             real_working_days = calendar.get_work_duration_data(
-                start_of_month,
-                end_of_month,
+                timezone_datetime(start_of_month),
+                timezone_datetime(end_of_month),
                 compute_leaves=True
             )