Bug 12627: Fix date management
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 30 Sep 2014 09:25:27 +0000 (11:25 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 7 Nov 2014 18:17:05 +0000 (15:17 -0300)
commit8dfc4326e8cd63e41726d3a162286cd1f9736011
tree5f19e376067ed039a5c5c50b9e909a8710caff3c
parent81ff0a449dc9404d87b6324df362900f642bbef2
Bug 12627: Fix date management

C4::Dates->today returns a string formatted depending on the dateformat
syspref.

Before the original patch, SQLHelper managed both format (string
formatted and DateTime.

Now DBIX::Class only manages DateTime, so the call to NewSuggestion and
ModSuggestion should pass a DateTime object

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
opac/opac-suggestions.pl
suggestion/suggestion.pl