bugfix
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def check_daytime_or_nighttime_from_current_time(current_time :str)-> str: #it's
|
|
| 17 |
"""
|
| 18 |
|
| 19 |
# Convert the string back to a datetime object
|
| 20 |
-
dt = datetime.datetime.strptime(
|
| 21 |
|
| 22 |
# Check if the hour is between 6 and 18
|
| 23 |
if 6 <= dt.hour < 18:
|
|
|
|
| 17 |
"""
|
| 18 |
|
| 19 |
# Convert the string back to a datetime object
|
| 20 |
+
dt = datetime.datetime.strptime(current_time, "%Y-%m-%d %H:%M:%S")
|
| 21 |
|
| 22 |
# Check if the hour is between 6 and 18
|
| 23 |
if 6 <= dt.hour < 18:
|