question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Missing UTC timezone issue in case DateTime.MaxValue

See original GitHub issue

Describe 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)

  1. Create service bus using CLI for premium or standard.
  2. 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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
axisccommented, Nov 11, 2020

@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.

0reactions
jsquirecommented, Jul 24, 2023

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found