adil9858 commited on
Commit
b392c4f
·
verified ·
1 Parent(s): 9dc61eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -38,15 +38,11 @@ def save_data(employee_name, project_name, project_code, hours, notes):
38
  # Automatically set the date to the current date
39
 
40
 
41
- # Get current time in UTC
42
- utc_now = datetime.utcnow()
43
-
44
- # Convert to IST
45
  ist = pytz.timezone('Asia/Kolkata')
46
- ist_now = utc_now.astimezone(ist)
47
 
48
- # Format in ISO format
49
- formatted_date = ist_now.isoformat()
50
 
51
 
52
  new_entry = {
 
38
  # Automatically set the date to the current date
39
 
40
 
 
 
 
 
41
  ist = pytz.timezone('Asia/Kolkata')
42
+ ist_now = datetime.now(ist)
43
 
44
+ # Format to get only the date
45
+ formatted_date = ist_now.date().isoformat()
46
 
47
 
48
  new_entry = {