This patch allows dt_from_string to handle RFC3339 strings containing
fractional seconds up to one thousandth of a second.
Test plan:
- Apply patch
- prove t/DateUtils.t
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(?<minute>\d{2})
:
(?<second>\d{2})
- (([Zz])|([\+|\-]([01][0-9]|2[0-3]):[0-5][0-9]))
+ (\.\d{1,3})?(([Zz])|([\+|\-]([01][0-9]|2[0-3]):[0-5][0-9]))
/xms;
}
elsif ( $date_format eq 'iso' or $date_format eq 'sql' ) {