projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d012e43
)
Detect December in January
author
Joey Schulze
<joey@infodrom.org>
Thu, 7 Jan 2016 13:25:26 +0000
(13:25 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Thu, 7 Jan 2016 13:25:26 +0000
(13:25 +0000)
Styles/phptools.inc
patch
|
blob
|
history
diff --git
a/Styles/phptools.inc
b/Styles/phptools.inc
index
1edac5d
..
37dbbb4
100644
(file)
--- a/
Styles/phptools.inc
+++ b/
Styles/phptools.inc
@@
-30,7
+30,10
@@
$datum[1] = date ("m");
}
if (strlen ($datum[2]) == 0) {
- $datum[2] = date ("Y");
+ if ($datum[1] == '12' && date('m') == '1')
+ $datum[2] = date ("Y", time() - 60*60*24*(date('d')+1));
+ else
+ $datum[2] = date ("Y");
} elseif (strlen ($datum[2]) == 1) {
$datum[2] = "200" . $datum[2];
} elseif (strlen ($datum[2]) == 2) {