microsoft / DurableFunctionsMonitor

A monitoring/debugging UI tool for Azure Durable Functions
MIT License
218 stars 34 forks source link

Entity with DateTimeOffset property is deserialized into local time zone, but claims Zulu. #140

Closed marked23 closed 6 months ago

marked23 commented 10 months ago

I'm using DFM 6.3.1 and Azurite.
My isolated durable function project is running locally in VS 2022 debugger.

I have a DateTimeOffset property in a Durable Entity.

public DateTimeOffset? LastRunStartDate { get; set; }

I have a reset method to set the date explicitly:

public Task Reset()
{
    LastRunStartDate = DateTimeOffset.Parse("2023-04-01 12:00:00 AM +00:00");
    return Task.CompletedTask;
}

After setting the date, I check the table in Azure Storage Explorer. Looks correct. image

Then I check the display in DFM. The date has been changed to the equivalent moment in my time zone. However the "Z" indicates that this is still UTC.
image

I expected the date to be displayed as it was stored.

scale-tone commented 8 months ago

Thanks for reporting this, and here is the offending line.

Looking into what can be done to fix it...

scale-tone commented 6 months ago

Done in v6.4. Pls, validate.