Skip to content

Commit

Permalink
correct date in evenings
Browse files Browse the repository at this point in the history
  • Loading branch information
b1conrad authored Jun 10, 2024
1 parent 2f46877 commit b8e9787
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion krl/com.vcpnews.w.krl
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ th:nth-child(2) { min-width: 80px; }
</head>
<body>
<h1>Wovyn sensors now</h1>
<h2>#{time:now().split("T").head()}</h2>
<h2>#{time:now().makeMT().split("T").head()}</h2>
#{ws:summary()} </body>
</html>
>>
}
makeMT = function(ts){
MST = time:add(ts,{"hours": -7});
MDT = time:add(ts,{"hours": -6});
MDT > "2024-11-03T02" => MST |
MST > "2024-03-10T02" => MDT |
MST
}
tags = ["wovyn-sensors","summary"]
}
rule initialize {
Expand Down

0 comments on commit b8e9787

Please sign in to comment.