Revert "Fixed: parity display in Main page when not set (yet)"

This reverts commit bba9f5e862.
This commit is contained in:
bergware
2016-09-08 21:29:20 +02:00
parent bba9f5e862
commit 355b59df9c
2 changed files with 8 additions and 16 deletions

View File

@@ -40,7 +40,7 @@ function my_number($value) {
function my_time($time, $fmt = NULL) {
global $display;
if (!$fmt) $fmt = $display['date'].($display['date']!='%c' ? ", {$display['time']}" : "");
return $time ? strftime($fmt, $time) : "unknown";
return $time ? strftime($fmt, $time) : "unset";
}
function my_temp($value) {
global $display;
@@ -128,7 +128,6 @@ function mk_option_check($name, $value, $text = "") {
}
function day_count($time) {
global $var;
if (!$time) return;
$datetz = new DateTimeZone($var['timeZone']);
$date = new DateTime("now", $datetz);
$offset = $datetz->getOffset($date);
@@ -137,7 +136,7 @@ function day_count($time) {
$days = date_diff($last,$now)->format('%a');
switch (true) {
case ($days<0):
return;
return "";
case ($days==0):
return " (today)";
case ($days==1):