X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FDates.pm;h=50db12e01ad36578b62218f5e9830e9028021c85;hb=324615e396be7fadc8ba3cfa1a9f6025e900df3a;hp=e61fc1973198783a19fdb771fe60f02bb148978e;hpb=a1ec82845372cd888021220f056d465e9e65f4f2;p=koha_fer diff --git a/C4/Dates.pm b/C4/Dates.pm index e61fc19731..50db12e01a 100644 --- a/C4/Dates.pm +++ b/C4/Dates.pm @@ -41,6 +41,12 @@ sub _prefformat { return $prefformat; } +sub reset_prefformat { # subroutine to clear the prefformat, called when we change it + if (defined $prefformat){ + $prefformat = C4::Context->preference('dateformat'); + } +} + our %format_map = ( iso => 'yyyy-mm-dd', # plus " HH:MM:SS" metric => 'dd/mm/yyyy', # plus " HH:MM:SS"