summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-07-21 10:26:24 +0000
committeralecpl <alec@alec.pl>2008-07-21 10:26:24 +0000
commit5b1de5598164c136567c29149c117aa8a4198f1b (patch)
treede6dbce149dd460e82d7332fe91cadb6fdb02dfe /program/include/main.inc
parentbd6c082bbc09f90c51b5acffa4a913c134787185 (diff)
- use long date format in print mode (#1485191)
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index d75921f3a..65b322f8e 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -754,6 +754,8 @@ function format_date($date, $format=NULL)
// month name (long)
else if ($format{$i}=='F')
$out .= rcube_label('long'.strtolower(date('M', $timestamp)));
+ else if ($format{$i}=='x')
+ $out .= strftime('%x %X', $timestamp);
else
$out .= date($format{$i}, $timestamp);
}