I encountered this issue when deploying my .Net Core app to an Azure Function. Setting the WEBSITE_TIME_ZONE environment variable solved it for me. For more information see the documentation here
WEBSITE_TIME_ZONE