git: 9front

Download patch

ref: ad7a3f7f33448e5e1d808c8747916c20da51cd2f
parent: e9dd3b5ecd3175e4a5417055bdce18d144bbe4eb
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Nov 8 09:21:14 EST 2020

imap4d: imap4date should ignore time and timezone (RFC3501, 6.4.4)

--- a/sys/src/cmd/upas/imap4d/date.c
+++ b/sys/src/cmd/upas/imap4d/date.c
@@ -3,7 +3,7 @@
 int
 imap4date(Tm *tm, char *date)
 {
-	if(tmparse(tm, "DD-?MM-YYYY hh:mm:ss ?Z", date, nil, nil) == nil)
+	if(tmparse(tm, "DD-?MM-YYYY", date, nil, nil) == nil)
 		return 0;
 	return 1;
 }
--