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.

Serverless changing DateTimeOffset value timezones

See original GitHub issue

Describe the bug

When sending messages from a Functions backend to SignalR serverless, which contain DateTimeOffset timestamps, the messages are arriving at the Client having had their Offset changed.

image (Am seeing the +8 hr timezone, which is not a timezone that any of my Function or App Services are running in)

To Reproduce

Send a message to SignalR serverless which contains a DateTimeOffset value which has, for example, no Offset so is UTC. Observe that the client receives the message with the Offset changed to a different Timezone.

This occurs whether sending the message via Azure Function Output Bindings, or using the Management SDK.

Logging the value of the DateTimeOffset before sending shows that it has the correct Timezone/Offset.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Y-Sindocommented, May 16, 2022

@oatsoda The fix has been applied to all the regions.

1reaction
Y-Sindocommented, Dec 27, 2021

@andrew-tevent The code to fix the issue in the service side is merged, but it will take about two months to be released. I will keep you updated in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing timezone for lambdas to EST?
1 Answer 1 ... Lambda env var docs: TZ – The environment's time zone (UTC). The execution environment uses NTP to synchronize the...
Read more >
Being Explicit About Time when Handling Multiple Timezone
Handling date/time in application's that affect different time zones is tricky! The general recommendation is that all dates be saved in UTC ...
Read more >
Timezones with Node, MySQL, and AWS Lambda - Chris Hand
Most of the time, your database server will be set to UTC, or Coordinated Universal Time. This is the primary standard time of...
Read more >
C# DateTimeOffset
In this tutorial, you'll learn how to use the C# DateTimeOffset to handle date and time values with the time zone offset.
Read more >
Converting times between time zones
This article explains how to convert times from one time zone to another and convert DateTimeOffset values that have limited time zone ......
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