qcubed/framework — pull request #521 by spekary (2014-11-12 06:07:59+00:00)
Title: bugfix-CURRENT_TIMESTAMP

This is a regression fix for the recent QDateTime changes. PHP has a bug that if you try to initialize a datetime with a random string, PHP will actually crash completely. Now that we are allowing timestamps to be QDateTime objects, it is possible for a QDateTime to be initialized with CURRENT_TIMESTAMP. This string will appear in the initialization string for the QDateTime, thus bringing PHP to its knees. This fix recognizes the string for what it is, and attempt to set the date time to the current date and time.