Azure / Azure/durabletask

UTC DateTime activity parameters get converted to local time

Open
#484 1 comment 0 reactions 0 assignees View on GitHub
bug dt.core
Dominant language
C#
Stars
1.7k
Forks
335
Avg merge
2d 23h
Merged PRs (30d)
6

Description

This seems to be a regression caused by #442.

If I have an activity defined that takes a `DateTime` parameter and pass it `DateTime.UtcNow`, the activity sees a `DateTime` with `DateTimeKind.Local`. This appears to be related to the recent usage of `DateParseHandling.None` based on some manual testing I did.

The workaround is to use strings instead of `DateTime` and parse them manually.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.