andrei-gorbatch commited on
Commit
cc68447
·
verified ·
1 Parent(s): d766775
Files changed (1) hide show
  1. app.py +1 -1
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(local_time_str, "%Y-%m-%d %H:%M:%S")
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: