We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c23ad6 commit 60e8175Copy full SHA for 60e8175
binding/SkiaSharp/Definitions.cs
@@ -360,7 +360,7 @@ internal partial struct SKTimeDateTimeInternal
360
{
361
public static SKTimeDateTimeInternal Create (DateTime datetime)
362
363
- var zone = datetime.Hour - datetime.ToUniversalTime ().Hour;
+ var zone = datetime.ToLocalTime ().Hour - datetime.ToUniversalTime ().Hour;
364
return new SKTimeDateTimeInternal {
365
fTimeZoneMinutes = (Int16)(zone * 60),
366
fYear = (UInt16)datetime.Year,
0 commit comments