Update app.py
Browse files
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 =
|
47 |
|
48 |
-
# 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 = {
|