ref: 31cd5bdb1e8cbd5070cd9171bdc4c037f1adb73f
parent: 860071f62ae03ff157eb2ba2dcbd45f21cb5ec36
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Nov 30 09:22:08 EST 2020
fix time.fromstring
--- a/llt/timefuncs.c
+++ b/llt/timefuncs.c
@@ -144,8 +144,12 @@
#elif defined(__plan9__)
double parsetime(const char *str)
{
- USED(str);
- return -1;
+ Tm tm;
+
+ if (tmparse(&tm, "?WWW, ?MM ?DD hh:mm:ss ?Z YYYY", str, tzload("local"), nil) == nil)
+ return -1;
+
+ return tmnorm(&tm);
}
#else
// TODO