Default time zone is UTC. Need to change the time zone in your function app in the configuration.
//Timer is set to trigger the function at 9Am
public static void Run([TimerTrigger("0 0 9 * * *")]TimerInfo myTimer, ILogger log)
{
// todo: clean up the database
}
Fix:
Select Configuration option in your Function App
Add new “application settings”
Fill the fields with the following value…
Name: WEBSITE_TIME_ZONE
Value: Pacific Standard Time
Sources:
https://www.serverlessnotes.com/docs/azure-functions-time-zone-issue
Comments