Skip to content
Snippets Groups Projects
Commit 6ed37fe8 authored by Julien Osman's avatar Julien Osman
Browse files

FIX: Read dates without final Zulu

parent 3cd0f3e5
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,7 @@ std::istream& operator>>(std::istream& is, Time& val) ...@@ -181,7 +181,7 @@ std::istream& operator>>(std::istream& is, Time& val)
val.frac_sec = sec - (double) val.tm_sec; val.frac_sec = sec - (double) val.tm_sec;
_OTB_ISTREAM_FAIL_IF( val.tm_sec < 0 || val.tm_sec > 60 ) _OTB_ISTREAM_FAIL_IF( val.tm_sec < 0 || val.tm_sec > 60 )
_OTB_ISTREAM_FAIL_IF( val.frac_sec < 0.0 || val.frac_sec >= 1.0) _OTB_ISTREAM_FAIL_IF( val.frac_sec < 0.0 || val.frac_sec >= 1.0)
_OTB_ISTREAM_FAIL_IF( is.get() != 'Z' ) //_OTB_ISTREAM_FAIL_IF( is.get() != 'Z' )
return is; return is;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment