projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b05f232
)
Correct handling of RFC3339 format with second fraction.
author
Andrej Kacian
<ticho@claws-mail.org>
Mon, 27 Jul 2015 11:12:59 +0000
(13:12 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Mon, 27 Jul 2015 23:11:41 +0000
(
01:11
+0200)
Patch by Darko Koruga.
src/procheader.c
patch
|
blob
|
history
diff --git
a/src/procheader.c
b/src/procheader.c
index e5a54163ea2f2a55aa9ce1ba947ade6778af5e67..98ecc0ca0ece3e0e67b8654dbe6ab1c9709ba54d 100644
(file)
--- a/
src/procheader.c
+++ b/
src/procheader.c
@@
-841,7
+841,7
@@
static gint procheader_scan_date_string(const gchar *str,
*weekday = '\0';
/* RFC3339 subset, with fraction of second */
- result = sscanf(str, "%4d-%2d-%2d%c%2d:%2d:%2d.%
1
d%6s",
+ result = sscanf(str, "%4d-%2d-%2d%c%2d:%2d:%2d.%d%6s",
year, &month_n, day, &sep1, hh, mm, ss, &secfract, zonestr);
debug_print("str |%s|, result %d\n", str, result);
if (result == 9