Jump to content

5.0.8 Problem with db_make_safe_human_date()


Recommended Posts

5.0.8 made changes to the db functions used in reports. In sales_tax_liability.php, for example, the function to sanitize the date string was changed from toMySQLDate() to db_make_safe_human_date(). This new function does not work as expected and causes the queries to fail. This is because db_make_safe_human_date('2013-01-01') returns 20130101-00-00 while toMySQLDate('2013-01-01') returns 20130101.

This problem occurs in all the reports using this function.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated