Skip to content

Commit 3f215f1

Browse files
committed
zephyr dst_get/_set
1 parent 4ec50c1 commit 3f215f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/base/time/zephyr/modTime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ void xs_time_timezone_set(xsMachine *the)
4343

4444
void xs_time_dst_get(xsMachine *the)
4545
{
46-
int32_t seconds = xsmcToInteger(xsArg(0));
47-
modSetDaylightSavingsOffset(seconds);
46+
xsmcSetInteger(xsResult, modGetDaylightSavingsOffset());
4847
}
4948

5049
void xs_time_dst_set(xsMachine *the)
5150
{
52-
xsmcSetInteger(xsResult, modMilliseconds());
51+
int32_t seconds = xsmcToInteger(xsArg(0));
52+
modSetDaylightSavingsOffset(seconds);
5353
}
5454

5555
void xs_time_ticks(xsMachine *the)

0 commit comments

Comments
 (0)