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

Jonathan Druart jonathan.druart at bugs.koha-community.org
Thu Aug 6 14:11:12 CEST 2020


What do you suggest exactly?
To replace the 3 regexs by a new module?
Or getting rid of the dateformat syspref and use the locales from the
client instead?

Le jeu. 6 août 2020 à 13:06, <dcook at prosentient.com.au> a écrit :
>
> 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
>
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/


More information about the Koha-devel mailing list