Permalink
Browse files

Fixing date formatting.

  • Loading branch information...
1 parent 6d8e662 commit 0c2c41757bb5e0dc089bd5076cc9275198df957d @davidpersson davidpersson committed Jun 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 models/Paste.php
View
4 models/Paste.php
@@ -76,12 +76,12 @@ public static function __init($options = array()) {
$document = $params['entity'];
if (!isset($document->id)) {
- $document->created = date('Y-m-d h:i:s');
+ $document->created = date('Y-m-d H:i:s');
}
if (!empty($params['data'])) {
$document->set($params['data']);
}
- $document->modified = date('Y-m-d h:i:s');
+ $document->modified = date('Y-m-d H:i:s');
$params['entity'] = $document;
return $chain->next($self, $params, $chain);
});

0 comments on commit 0c2c417

Please sign in to comment.