From c5bca3ec178c2c70762314c1e5657218dbd872bb Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Wed, 31 May 2023 12:17:29 +0200 Subject: no longer hardcode the offset in time tostring --- src/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/time.c b/src/time.c index da190cf..e43b3cc 100644 --- a/src/time.c +++ b/src/time.c @@ -24,9 +24,9 @@ static int jd_time_get(void *p, Janet key, Janet *out) { } // time_t is always a UTC-representation -// we hard-code the offset because of a macOS bug static void jd_time_tostring(void *p, JanetBuffer *buffer) { - strftime_buffer("%F %T.000 +0000", gmtime(p), buffer); + // print ISO 8601 + strftime_buffer("%F %T%z", gmtime(p), buffer); } static const JanetAbstractType jd_time_t = { -- cgit v1.2.3