Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
a437ac39
...
a437ac395dccd5ccd0adfc5376b5e3a1a05f7365
authored
2002-08-23 06:55:03 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(parse822_time): Tolerate unknown timezone abbreviations.
1 parent
4ec65fa5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
mailbox/parse822.c
mailbox/parse822.c
View file @
a437ac3
...
...
@@ -1606,16 +1606,16 @@ parse822_time (const char **p, const char *e,
break
;
}
if
(
strspn
(
zp
,
"0123456789"
)
!
=
4
)
if
(
strspn
(
zp
,
"0123456789"
)
=
=
4
)
{
*
p
=
save
;
str_free
(
&
zone
);
return
EPARSE
;
}
/* convert to seconds from UTC */
hh
=
(
zone
[
1
]
-
'0'
)
*
10
+
(
zone
[
2
]
-
'0'
);
mm
=
(
zone
[
3
]
-
'0'
)
*
10
+
(
zone
[
4
]
-
'0'
);
}
else
{
hh
=
mm
=
0
;
/* Consider equivalent to -0000 */
}
if
(
tz
)
*
tz
=
sign
*
(
hh
*
60
*
60
+
mm
*
60
);
}
...
...
Please
register
or
sign in
to post a comment