aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2016-02-18 19:53:39 +0100
committerArthur <arthur@hoa.ro>2016-02-18 19:53:39 +0100
commit64282b1499a48b3924741fa1349b8800b98947e6 (patch)
treec0d6189eadb4de41d6a74bef2d4f8345c871c3a2 /application
parent185447fbc6745164ae3dd207b45cc93a0753cc05 (diff)
parent205a42778dff04f1552e34ac2b7ade9e407ab1a0 (diff)
downloadShaarli-64282b1499a48b3924741fa1349b8800b98947e6.tar.gz
Shaarli-64282b1499a48b3924741fa1349b8800b98947e6.tar.zst
Shaarli-64282b1499a48b3924741fa1349b8800b98947e6.zip
Merge pull request #486 from virtualtam/refactor/datetime
cleanup: use DateTime to format dates
Diffstat (limited to 'application')
-rw-r--r--application/LinkDB.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/application/LinkDB.php b/application/LinkDB.php
index 9f4d3e3c..9488ac45 100644
--- a/application/LinkDB.php
+++ b/application/LinkDB.php
@@ -32,6 +32,9 @@ class LinkDB implements Iterator, Countable, ArrayAccess
32 // Links are stored as a PHP serialized string 32 // Links are stored as a PHP serialized string
33 private $_datastore; 33 private $_datastore;
34 34
35 // Link date storage format
36 const LINK_DATE_FORMAT = 'Ymd_His';
37
35 // Datastore PHP prefix 38 // Datastore PHP prefix
36 protected static $phpPrefix = '<?php /* '; 39 protected static $phpPrefix = '<?php /* ';
37 40