Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
6aa68f49
Commit
6aa68f49
authored
Nov 19, 2021
by
Cédric Traizet
Browse files
BUG: remove UTC time identifier from the input istream after time point parsing, if it exists
parent
0ed4f6d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/Core/Metadata/src/otbDateTime.cxx
View file @
6aa68f49
...
...
@@ -64,6 +64,13 @@ std::ostream & TimePoint::Display(std::ostream & os) const
std
::
istream
&
TimePoint
::
Read
(
std
::
istream
&
is
,
const
std
::
string
&
format
)
{
date
::
from_stream
(
is
,
format
.
c_str
(),
m_Time
);
// Remove the UTC time identifier from the input istream, if it exists.
if
(
!
is
.
eof
()
&&
is
.
peek
()
==
'Z'
)
{
is
.
get
();
}
return
is
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment