aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-31 16:38:01 +0200
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-31 16:38:01 +0200
commit7b0f00efaf6a6be9f1df9e4469fbae2effa96569 (patch)
tree44f3f957aa092382b0aba9e19d9b5297de104840
parentinitial janet wrapper edition (diff)
use TM_GMTOFF when it's present
-rw-r--r--src/tm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tm.c b/src/tm.c
index b016bb2..9c2a91f 100644
--- a/src/tm.c
+++ b/src/tm.c
@@ -221,7 +221,7 @@ JANET_FN(jd_tm,
struct tm *out = jd_maketm();
memset(out, 0, sizeof(struct tm));
#ifdef TM_GMTOFF
- out->tm_gmtoff = 0;
+ out->TM_GMTOFF = 0;
#endif
for (int32_t i = 0; i < view.cap; i++) {