From 79f3473dfe777688a788b5aec96a563d4c1fae91 Mon Sep 17 00:00:00 2001 From: denise Date: Wed, 18 Apr 2012 16:13:52 -0400 Subject: [PATCH] CC-3674: Cannot add songs to 'Now Playing' nor Playlists -fixed for Now Playing --- airtime_mvc/application/models/airtime/CcSchedule.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airtime_mvc/application/models/airtime/CcSchedule.php b/airtime_mvc/application/models/airtime/CcSchedule.php index 75a01e758..87532e2c6 100644 --- a/airtime_mvc/application/models/airtime/CcSchedule.php +++ b/airtime_mvc/application/models/airtime/CcSchedule.php @@ -111,6 +111,7 @@ class CcSchedule extends BaseCcSchedule { $dt = $v; } else if (preg_match('/^[0-9]{1,2}(\.\d{1,6})?$/', $v)) { + $v = str_pad($v, 9, "0", STR_PAD_LEFT); $dt = DateTime::createFromFormat("s.u", $v); } else { @@ -138,6 +139,7 @@ class CcSchedule extends BaseCcSchedule { $dt = $v; } else if (preg_match('/^[0-9]{1,2}(\.\d{1,6})?$/', $v)) { + $v = str_pad($v, 9, "0", STR_PAD_LEFT); $dt = DateTime::createFromFormat("s.u", $v); } else {