Skip to content
Snippets Groups Projects
  • Jared Hancock's avatar
    Fix parsing issue in strtotime() · b9ab14c1
    Jared Hancock authored
    PHP can't discern the difference between d/m/Y and m/d/Y when just the date
    is submitted to strtotime(). Unfortunately, strptime() is not available
    until PHP 5.1.0. This patch forces datepickers to change their values to
    YYYY-MM-DD upon submission to disambiguate parsing issues.
    
    Fixes #832
    b9ab14c1