diff options
author | Jonathan Druart <jonathan.druart@gmail.com> | 2015-05-08 11:38:01 +0100 |
---|---|---|
committer | Jonathan Druart <jonathan.druart@gmail.com> | 2015-05-11 11:16:19 +0100 |
commit | f5b059254f1bc0311a4a2912502353e77dbad1dc (patch) | |
tree | 2703ed8a6d5f58eddbea61ccd16921a630b15fda /.gitignore | |
parent | 569ffb59d4f7c41e5deabd8b2a163a952acb1957 (diff) | |
download | Shaarli-f5b059254f1bc0311a4a2912502353e77dbad1dc.tar.gz Shaarli-f5b059254f1bc0311a4a2912502353e77dbad1dc.tar.zst Shaarli-f5b059254f1bc0311a4a2912502353e77dbad1dc.zip |
Display date as today if no articles published
On "The Daily Shaarli" page (index.php?do=daily), the date is "Tuesday
30, November 1999" if no articles have been published/shared.
This patch checks the parameter ($linkdate) before the mktime call to
prevent and generate the "day 0" string.
mktime(0,0,0,0,0,0) returns 943916400 (hum?)
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions