alexm Posted June 29, 2021 Share Posted June 29, 2021 I've got 2 March's instead of Feb, March. Screenshot attached. Anyone else noticing this? PW 3.0.180 Link to comment Share on other sites More sharing options...
alexm Posted June 29, 2021 Author Share Posted June 29, 2021 I've narrowed it down to line 93 of InputfieldDatetimeSelect.php strftime($monthFormat, mktime(0, 0, 0, $n)) All ints from 1 - 12 output the relevant month abbreviation except for 2 which outputs March. No idea why though currently. Link to comment Share on other sites More sharing options...
alexm Posted June 29, 2021 Author Share Posted June 29, 2021 Ok got it. There needs to be a 5th parameter passed of 1 so that the day selected is the first of the month otherwise it's getting a day that doesn't exist and skips over onto the next month. strftime($monthFormat, mktime(0, 0, 0, $n, 1)) 4 Link to comment Share on other sites More sharing options...
jacmaes Posted June 30, 2021 Share Posted June 30, 2021 @alexm Thanks for sorting this out. I've just run into the exact same thing, with "marzo" (March in Spanish) as this is my locale. Could you please file a Github issue? 1 Link to comment Share on other sites More sharing options...
alexm Posted July 1, 2021 Author Share Posted July 1, 2021 @jacmaes Wicked, glad it sorted it for you too. I'll file it now 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now