diff options
author | VirtualTam <virtualtam@flibidi.net> | 2016-02-17 22:46:50 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2016-02-17 22:46:50 +0100 |
commit | 205a42778dff04f1552e34ac2b7ade9e407ab1a0 (patch) | |
tree | fd21ec30198e1da936c4923f24a037369da811bb /application | |
parent | bfec695df1205864b46ca7175e1598b184602687 (diff) | |
download | Shaarli-205a42778dff04f1552e34ac2b7ade9e407ab1a0.tar.gz Shaarli-205a42778dff04f1552e34ac2b7ade9e407ab1a0.tar.zst Shaarli-205a42778dff04f1552e34ac2b7ade9e407ab1a0.zip |
cleanup: use DateTime to format dates
Closes #270
Modifications:
- replace custom date parsing by DateTime calls
- use proper date formatting for RSS feeds
Deletions:
- linkdate2timestamp()
- linkdate2rfc822
- linkdate2iso8601
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'application')
-rw-r--r-- | application/LinkDB.php | 3 |
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 | ||