fix(simu): use local time rather than UTC in the WASM simulator (#7658)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
3e1e1859bc
commit
e9a6ab8691
+2
-1
@@ -448,7 +448,8 @@
|
||||
ex.simuInit();
|
||||
runner.setFatfsPaths('/', '/');
|
||||
ex.simuCreateDefaults();
|
||||
ex.simuStart(1);
|
||||
// WASI has no timezone support, so the module needs our UTC offset.
|
||||
ex.simuStart(1, -new Date().getTimezoneOffset() * 60);
|
||||
|
||||
if (canvas) {
|
||||
lcdRenderer = new LcdRenderer(canvas);
|
||||
|
||||
@@ -45,7 +45,7 @@ export interface SimulatorExports {
|
||||
free: (ptr: number) => void;
|
||||
|
||||
simuInit: () => void;
|
||||
simuStart: (tests: number) => void;
|
||||
simuStart: (tests: number, utcOffset: number) => void;
|
||||
simuStop: () => void;
|
||||
simuIsRunning: () => number;
|
||||
simuFatfsSetPaths: (sdPath: number, settingsPath: number) => void;
|
||||
|
||||
Reference in New Issue
Block a user