We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ec50c1 commit 3f215f1Copy full SHA for 3f215f1
modules/base/time/zephyr/modTime.c
@@ -43,13 +43,13 @@ void xs_time_timezone_set(xsMachine *the)
43
44
void xs_time_dst_get(xsMachine *the)
45
{
46
- int32_t seconds = xsmcToInteger(xsArg(0));
47
- modSetDaylightSavingsOffset(seconds);
+ xsmcSetInteger(xsResult, modGetDaylightSavingsOffset());
48
}
49
50
void xs_time_dst_set(xsMachine *the)
51
52
- xsmcSetInteger(xsResult, modMilliseconds());
+ int32_t seconds = xsmcToInteger(xsArg(0));
+ modSetDaylightSavingsOffset(seconds);
53
54
55
void xs_time_ticks(xsMachine *the)
0 commit comments