[BUG] Missing UTC timezone issue in case DateTime.MaxValue
See original GitHub issueDescribe the bug Please provide the description of issue you’re seeing. There is returning inconsistence format regarding the ExpiresAtUtc. We can see this line does not return time in UTC like line 186. https://github.com/Azure/azure-sdk-for-net/blob/f83d1822f337c7eb2d8d4014b4932eb81a9b2979/sdk/servicebus/Microsoft.Azure.ServiceBus/src/Message.cs#L183
Expected behavior What is the expected behavior? DateTime.MaxValue.ToUniversalTime();
Actual behavior (include Exception or Stack Trace) What is the actual behavior? DateTime.MaxValue
To Reproduce Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
- Create service bus using CLI for premium or standard.
- Time to live is set to DateTime.MaxValue.
Environment:
- Name and version of the Library package used: [e.g. Azure.Storage.Blobs 12.2.0]
- Hosting platform or OS and .NET runtime version (
dotnet --info
output for .NET Core projects): [e.g. Azure AppService or Windows 10 .NET Framework 4.8] - IDE and version : [e.g. Visual Studio 16.3]
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
c# - Why can DateTime.MinValue not be serialized in ...
If your time zone is GMT+1, then the UTC value of DateTime.MinValue in your time zone is going to be an hour less...
Read more >Days since last timezone issue : r/ProgrammerHumor
When we then have an API that sends the date, it will return to the general timezone (+0 GMT) and returns 10-18-2021 22:00...
Read more >The UTC time represented... Error in ReceiveSSO
MaxValue, you see that it converts the value you give it to UTC before checking ... and so for us in a negative...
Read more >Solve Time Zone, GMT, and UTC problems using the T- ...
TSqlToolbox handles the hard SQL Server date time, timezone, daylight savings time, and start / end of date part calculations for you.
Read more >Grafana not handling timezone correct for MariaDB
I have a MariaDB 10 database with DB fields of type DATETIME I use as grafana time column. I am located in timezone...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@amamounelsayed Thanks for the details. Unfortunately, this may be a breaking change.
We will track this internally and will fix it in the upcoming release with the higher major version.
The
Microsoft.Azure.ServiceBus
package has been deprecated and is only receiving critical security and bug fixes. Unfortunately, the fix for this does not meet that bar and is not currently planned. As Josh mentioned, this is not an issue with the current generation package,Azure.Messaging.ServiceBus
.Closing this out.