diff --git a/html/ops/util_ops.inc b/html/ops/util_ops.inc
index 5fc95809e8..7cfdaabe76 100644
--- a/html/ops/util_ops.inc
+++ b/html/ops/util_ops.inc
@@ -51,8 +51,10 @@ function page_tail() {
echo "
Main admin page \n";
}
-function date_str($when) {
- return date("g:i A, l M j", $when);
+function date_str($x) {
+ if ($x == 0) return "---";
+ // return date("g:i A, l M j", $when);
+ return strftime("%Y-%m-%d", $x);
}
function time_str($x) {