Permalink
Browse files

add timestamp as alias for datetime

  • Loading branch information...
1 parent 6716c1b commit 6257874420d3e3ee84ddbd8ccf0566d3a1eb3a75 @romaninsh romaninsh committed Apr 19, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Grid.php
View
@@ -214,6 +214,9 @@ function format_date($field){
$this->current_row[$field]=date($this->api->getConfig('locale/date','d/m/Y'),
strtotime($this->current_row[$field]));
}
+ function format_timestamp($field){
+ return $this->format_datetime($field);
+ }
function format_datetime($field){
if(!$this->current_row[$field])$this->current_row[$field]='-'; else
$this->current_row[$field]=date($this->api->getConfig('locale/datetime','d/m/Y H:i:s'),

0 comments on commit 6257874

Please sign in to comment.