daily-psk: explicitly cast to num

This commit is contained in:
Christian Hesse 2023-05-10 18:10:02 +02:00
parent d586a5ab19
commit e7927e0eee
3 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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);