Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing date formatting.

  • Loading branch information...
commit 0c2c41757bb5e0dc089bd5076cc9275198df957d 1 parent 6d8e662
David Persson davidpersson authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 models/Paste.php
4 models/Paste.php
View
@@ -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);
});
Please sign in to comment.
Something went wrong with that request. Please try again.