highing666 3 tahun lalu
induk
melakukan
ea66c1cbae
2 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 0 0
      app/schemas/instructions.py
  2. 1 1
      app/utils/date.py

+ 0 - 0
app/schemas/instructions.py


+ 1 - 1
app/utils/date.py

@@ -31,5 +31,5 @@ def get_time_str(delta: int = 0, flag: str = 'now', fmt: Optional[str] = TIME_FM
 
 
 
 
 def get_quarter_minutes(time_str: str) -> str:
 def get_quarter_minutes(time_str: str) -> str:
-    temp = arrow.get(time_str, TIME_FMT).timestamp // (15 * 60) * (15 * 60)
+    temp = arrow.get(time_str, TIME_FMT).timestamp() // (15 * 60) * (15 * 60)
     return arrow.get(temp).time().strftime('%H%M%S')
     return arrow.get(temp).time().strftime('%H%M%S')