Azure function returned wrong value for datetime.now()
Kübra Kutlu
0
Reputation points
Between 13th-15th of December 2024, my Azure function produced wrong results for the code below. It was stuck on 13th of December until 2024-12-15T17:08:05Z. I realized it because I save csv files to data lake with the naming "lam_data_{current_time_minus_1h.strftime('%Y%m%d')}.csv". What was the reason for this fault?
helsinki_tz = pytz.timezone('Europe/Helsinki')
current_time = datetime.now(helsinki_tz)
current_time_minus_1h = current_time - timedelta(hours=1)
Sign in to answer