From e7927e0eee62ea331e97c3e572b12a594eca14fd Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 10 May 2023 18:10:02 +0200 Subject: daily-psk: explicitly cast to num --- daily-psk.capsman.rsc | 2 +- daily-psk.local.rsc | 2 +- daily-psk.template.rsc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daily-psk.capsman.rsc b/daily-psk.capsman.rsc index 65a17d0..2bfb576 100644 --- a/daily-psk.capsman.rsc +++ b/daily-psk.capsman.rsc @@ -38,7 +38,7 @@ $WaitFullyConnected; :local Month ($Months->[ :pick $Date 0 3 ]); :local Day [ :tonum [ :pick $Date 4 6 ] ]; - :local Year [ :pick $Date 7 11 ]; + :local Year [ :tonum [ :pick $Date 7 11 ] ]; :local A ((14 - $Month) / 12); :local B ($Year - $A); diff --git a/daily-psk.local.rsc b/daily-psk.local.rsc index 94991a7..5f4382f 100644 --- a/daily-psk.local.rsc +++ b/daily-psk.local.rsc @@ -38,7 +38,7 @@ $WaitFullyConnected; :local Month ($Months->[ :pick $Date 0 3 ]); :local Day [ :tonum [ :pick $Date 4 6 ] ]; - :local Year [ :pick $Date 7 11 ]; + :local Year [ :tonum [ :pick $Date 7 11 ] ]; :local A ((14 - $Month) / 12); :local B ($Year - $A); diff --git a/daily-psk.template.rsc b/daily-psk.template.rsc index e2a3d59..7dd5c7e 100644 --- a/daily-psk.template.rsc +++ b/daily-psk.template.rsc @@ -39,7 +39,7 @@ $WaitFullyConnected; :local Month ($Months->[ :pick $Date 0 3 ]); :local Day [ :tonum [ :pick $Date 4 6 ] ]; - :local Year [ :pick $Date 7 11 ]; + :local Year [ :tonum [ :pick $Date 7 11 ] ]; :local A ((14 - $Month) / 12); :local B ($Year - $A); -- cgit v1.2.3-70-g09d2