displaying everything in mm/dd/yyyy

The feature to switch from the default d/m/y to m/d/y is great for those of us in backwards civilizations.

However, a very, very minor issue arises, and I thought I'd share my workaround. After choosing m/d/y in the admin panel, the record results screen still displays the current date in dd/mm/yyyy as the default javascript input. Most users do not notice and everything is just dandy. However, some "helpful" people are too smart to notice the parentheses indicating dd/mm/yyyy and insist on switching things around, causing the results to have an incorrect date. I am running v0.8.1. Here's how I fixed it:

In record_results, 2 minor changes, in line 56 change 'j/m/Y' to 'm/j/Y' , and then in line 89 change all the javascript '3's to '1's.

Then, in record_results2, change line 99 to this:

list ($dd, $mm, $yyyy) = split ('[/]', $datum);

I'm not sure if this is the best or even correct way, but it works.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Thanks

Useful mod thanks.