X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FDates.pm;h=50db12e01ad36578b62218f5e9830e9028021c85;hb=0c40ff9f9814295fe27f52047bfbe4ef7b47e78b;hp=e61fc1973198783a19fdb771fe60f02bb148978e;hpb=47b7b91d148faa62a8d0bb257bec2b3fa716d234;p=koha_gimpoz 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"