projects
/
koha_fer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7b081f
)
small improvment
author
tipaul
<tipaul>
Tue, 1 Apr 2003 12:26:02 +0000
(12:26 +0000)
committer
tipaul
<tipaul>
Tue, 1 Apr 2003 12:26:02 +0000
(12:26 +0000)
C4/Date.pm
patch
|
blob
|
history
diff --git
a/C4/Date.pm
b/C4/Date.pm
index
5e3a6cf
..
69bf744
100644
(file)
--- a/
C4/Date.pm
+++ b/
C4/Date.pm
@@
-25,21
+25,13
@@
sub get_date_format
{
#Get the database handle
my $dbh = C4::Context->dbh;
-
- #Query the database to get the dateformat
- my $sth = $dbh->prepare("SELECT value FROM systempreferences WHERE variable='dateformat'");
-
- $sth->execute();
-
- my ($dateformat) = $sth->fetchrow;
-
- return $dateformat
+ return C4::Context->preference('dateformat');
}
sub display_date_format
{
my $dateformat = get_date_format();
-
+
if ( $dateformat eq "us" )
{
return "mm/dd/yyyy";