projects
/
koha_gimpoz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 3216: UNIMARC author facets
[koha_gimpoz]
/
C4
/
Dates.pm
diff --git
a/C4/Dates.pm
b/C4/Dates.pm
index
e61fc19
..
50db12e
100644
(file)
--- a/
C4/Dates.pm
+++ b/
C4/Dates.pm
@@
-41,6
+41,12
@@
sub _prefformat {
return $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"
our %format_map = (
iso => 'yyyy-mm-dd', # plus " HH:MM:SS"
metric => 'dd/mm/yyyy', # plus " HH:MM:SS"