Skrylar/rfc3339

no components flag set in to_date(string)

Closed this issue · 1 comments

import rfc3339
var x = "1970-01-01T01:02:03Z+00:00".to_date()
echo $x

produces 0000-01-01T00:00:00Z+00:00
which is not very useful.

I think this is so because you don't update the components flags during parsing.

Fixed.