-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Date: merge $now abstraction from Sugar Calendar.
This change abstracts the `$now = time()` portion of build_mysql_datetime() out into a method parameter, allowing for $now to be passed in if needed for consistency between query clauses. It also adds support for string-or-int, non-array $datetime values, as well as the "Y-m-d H:i:s" format directly if identified.
- Loading branch information
Showing
1 changed file
with
57 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters