Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
swym
firmware
Commits
db1f8d07
Commit
db1f8d07
authored
Aug 22, 2019
by
Ferdinand Bachmann
Committed by
Rahix
Aug 22, 2019
Browse files
fix(utime.c): Make set_time correctly subtract TZONE_OFFSET
parent
08d8d9a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycardium/modules/utime.c
View file @
db1f8d07
...
...
@@ -20,7 +20,7 @@
static
mp_obj_t
time_set_time
(
mp_obj_t
secs
)
{
uint64_t
timestamp
=
mp_obj_get_int
(
secs
)
*
1000ULL
+
EPOCH_OFFSET
*
1000ULL
+
TZONE_OFFSET
;
EPOCH_OFFSET
*
1000ULL
-
TZONE_OFFSET
*
1000ULL
;
epic_rtc_set_milliseconds
(
timestamp
);
return
mp_const_none
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment