Skip to content

Commit 02d9627

Browse files
committed
fix: initialize Dt property in Home.razor to null instead of current UTC time
1 parent 2a301ca commit 02d9627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/BlazorLocalTimeSample/Pages/Home.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
</LocalTimeForm>
162162

163163
@@code {
164-
private DateTime? Dt { get; set; } = DateTime.UtcNow;
164+
private DateTime? Dt { get; set; } = null;
165165
}
166166
</code></pre>
167167

0 commit comments

Comments
 (0)