Looking at testtags.php?sce=view shows $dateoflastrainalways = '9/4/2023';
which is what is displayed.
Your Settings.php has $SITE['WDdateMDY'] = true; // for WD date format of month/day/year. =false for day/month/year
and that correctly matches the date format you are using (month/day/year).
The data contents are solely determined by Weather-Display.