Skip to content

Commit 72e055d

Browse files
authored
cheery pick UTC fix from main (#545)
1 parent 963a5f3 commit 72e055d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libraries/Core/Microsoft.Agents.Core/Models/TokenResponse.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public TokenResponse(string channelId = default, string connectionName = default
2424
ChannelId = channelId;
2525
ConnectionName = connectionName;
2626
Token = token;
27-
Expiration = expiration;
27+
28+
if (expiration != default) // do not set the expiration if the default value is passed. If the timezone is + UTC it will cause a fault when assigned as an offset.
29+
Expiration = expiration;
2830
}
2931

3032
/// <summary> The channelId of the TokenResponse. </summary>

0 commit comments

Comments
 (0)