projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a57007
)
Format date values with German date format
author
Joey Schulze
<joey@infodrom.org>
Mon, 1 Mar 2010 15:23:34 +0000
(16:23 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 1 Mar 2010 15:23:34 +0000
(16:23 +0100)
ajax/ajax.php
patch
|
blob
|
history
diff --git
a/ajax/ajax.php
b/ajax/ajax.php
index
5095ca6
..
5f2e3c9
100644
(file)
--- a/
ajax/ajax.php
+++ b/
ajax/ajax.php
@@
-6,7
+6,9
@@
function fetch($mask)
{
$fields = array("to_char(sys_edit,'DD.MM.YYYY HH24:mm') AS sys_edit", 'sys_user');
foreach ($mask['edit'] as $field => $info)
- if ($info['type'] != 'passwd')
+ if ($info['type'] == 'date')
+ $fields[] = sprintf("to_char(%s,'DD.MM.YYYY') AS %s", $field, $field);
+ elseif ($info['type'] != 'passwd')
$fields[] = $field;
$sql = sprintf('SELECT id,%s FROM %s WHERE id = %d',