projects
/
weathermon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Добавлен юнит для systemd
[weathermon.git]
/
web
/
image_minmax.php
diff --git
a/web/image_minmax.php
b/web/image_minmax.php
index dfa66d202a3aecdafd81a7a7ef9faccfb734b0ca..183942ba18f568a5699ed9201effad4292177670 100644
(file)
--- a/
web/image_minmax.php
+++ b/
web/image_minmax.php
@@
-84,16
+84,17
@@
if ($type and $param) {
$next_year = $year;
$next_month = $month+1;
$next_year = $year;
$next_month = $month+1;
- if ($month==1
3
) {
+ if ($month==1
2
) {
$next_year++;
$next_month=1;
$next_year++;
$next_month=1;
-
+
}
$curr = date("Ym");
}
$curr = date("Ym");
+ $ym=sprintf('%04d%02d',$next_year,$next_month);
- if ($curr>$
next_year.$next_month
) {
+ if ($curr>$
ym
) {
$cachefilename='meteo.month.'.$sensor.'.'.$param.'.'.$to_unit.'.'.$year.'-'.$month.'.'.$img_format;
$cachefilename='meteo.month.'.$sensor.'.'.$param.'.'.$to_unit.'.'.$year.'-'.$month.'.'.$img_format;