[Koha-bugs] [Bug 19222] Why does dt_from_string not understand yyyy-mm-ddThh:mm:ss ?

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 8 04:39:26 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19222

M. Tompsett <mtompset at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #66669|0                           |1
        is obsolete|                            |

--- Comment #3 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 66968
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=66968&action=edit
Bug 19222: Why does dt_from_string not understand yyyy-mm-ddThh:mm:ss?

dt_from_string disregards the time part when there is a T before it.
But note that if you print a datetime it actually prints that T.
Like: 2017-08-31T13:32:37

A small regex adjustment could be helpful.

Test plan:
Run t/DateUtils.t

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

Signed-off-by: Mark Tompsett <mtompset at hotmail.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list