From d19e9f7fdffe2cabf8cb6a4ef64a4982f4ddfa78 Mon Sep 17 00:00:00 2001 From: Tom Kent Date: Wed, 30 Oct 2024 20:17:28 -0500 Subject: [PATCH] Change to use the `==` comparison --- skins/JSON/current_minimal.json.tmpl | 2 +- skins/JSON/weewx.json.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/skins/JSON/current_minimal.json.tmpl b/skins/JSON/current_minimal.json.tmpl index 5f5cf2f..a69b92a 100644 --- a/skins/JSON/current_minimal.json.tmpl +++ b/skins/JSON/current_minimal.json.tmpl @@ -9,7 +9,7 @@ }, "generation": { - #if $Extras.timestamp_fmt is "human" + #if $Extras.timestamp_fmt == "human" "time": "$current.dateTime.format("%a, %d %b %Y %H:%M:%S %Z")", #else "time": "$current.dateTime.format("%Y-%m-%dT%H:%M:%S%z")", diff --git a/skins/JSON/weewx.json.tmpl b/skins/JSON/weewx.json.tmpl index 3129370..4a30d0d 100644 --- a/skins/JSON/weewx.json.tmpl +++ b/skins/JSON/weewx.json.tmpl @@ -9,7 +9,7 @@ }, "generation": { - #if $Extras.timestamp_fmt is "human" + #if $Extras.timestamp_fmt == "human" "time": "$current.dateTime.format("%a, %d %b %Y %H:%M:%S %Z")", #else "time": "$current.dateTime.format("%Y-%m-%dT%H:%M:%S%z")",