[Koha-devel] Use DateTime::Format::Strptime in Koha::DateUtils

dcook at prosentient.com.au dcook at prosentient.com.au
Thu Aug 6 13:06:24 CEST 2020


Hi all,

 

I needed to parse a string into a DateTime object, so I decided to take a
look at Koha::DateUtils, and I was surprised to see that we're parsing dates
the hard way. We really should look at using DateTime::Format::Strptime
instead. I use it in other Perl projects, and it makes life much easier. 

 

David Cook

Systems Librarian

Prosentient Systems

72/330 Wattle St

Ultimo, NSW 2007

Australia

 

Office: 02 9212 0899

Online: 02 8005 0595

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20200806/12df4608/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 484 bytes
Desc: not available
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20200806/12df4608/attachment.sig>


More information about the Koha-devel mailing list