Menu

date change

Help
Jerry I.
2005-04-21
2013-05-01
  • Jerry I.

    Jerry I. - 2005-04-21

    I want to congratulate you on a very good program. We just started using and have found a slight problem. We are unable to go to a different date in either day mode or week mode by entering a date in the "Week of" or "Day of" entry box. Any help on this would be greatly appreciated.

    Jerry I.

     
    • Jeremy Shaver

      Jeremy Shaver - 2005-04-21

      Nice catch - this is a bug caused when we solved a different problem associated with euorpean date format. The problem is in the "functions.php" file. We will shortly have a fix up on the website, but if you are up to making the change yourself, locate the function "validatedate" in functions.php and locate the code which reads:

                  //set aside any time information at the end
                  $dateslash = trim($dateslash);
                  $datetime  = explode(" ",$dateslash);
                  $dateslash = $datetime[0];

      add the following in place of that:

              if (stristr($dateslash,'/')) {
                  //set aside any time information at the end
                  $dateslash = trim($dateslash);
                  $datetime  = explode(" ",$dateslash);
                  $dateslash = $datetime[0];
              }

      You can make this change in the install folder, then re-run the first step of the installation procedure - that will be sufficient to update the file and solve the problem.

      As I said, you can also just wait for the update on the website.

      Thanks for noting the problem.

       

Log in to post a comment.