c# Bot Framework client and Server timezone difference
问题 I create a chatbot using MS bot framework where initially i will send a welcome message like "Good morning UserName" but my bot is hosted in azure and i user DateTime.Now to find the time of the day and provide the greeting message accordingly. But if some user from different timezone uses "Good morning " and "Good afternoon" messages are not appropriate. How can i overcome this? if (DateTime.Now.Hour < 12) { await context.PostAsync("Good Morning"); } else if (DateTime.Now.Hour > 12 and