diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-01-17 17:11:51 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-01-17 17:11:51 -0500 |
commit | 84b0f0df90442775b9122457648f06c9485df1f1 (patch) | |
tree | 5f0fb91ed9280bbf10bb60d69f3523cafc928f5c /app/Model/DateParser.php | |
parent | 4b45b2aa3533309898670f1b13756dfdfce355a7 (diff) |
Add project calendars (merge/refactoring of #490)
Diffstat (limited to 'app/Model/DateParser.php')
-rw-r--r-- | app/Model/DateParser.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Model/DateParser.php b/app/Model/DateParser.php index 518a4f3f..53fc9b76 100644 --- a/app/Model/DateParser.php +++ b/app/Model/DateParser.php @@ -99,6 +99,18 @@ class DateParser extends Base } /** + * Get a timetstamp from an ISO date format + * + * @access public + * @param string $date Date format + * @return integer + */ + public function getTimestampFromIsoFormat($date) + { + return $this->resetDateToMidnight(strtotime($date)); + } + + /** * Format date (form display) * * @access public |