From 7d047a41e45d13cefb6b86688b0686b0204e133d Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Sun, 20 Sep 2015 00:27:52 -0700 Subject: [PATCH] Fixes T373: Moment.js now assumes whatever it's given is UTC. --- app/Track.php | 12 ++++++------ config/cache.php | 2 +- .../scripts/app/filters/moment-from-now.coffee | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Track.php b/app/Track.php index 40bdbcfc..2322b221 100644 --- a/app/Track.php +++ b/app/Track.php @@ -9,12 +9,12 @@ use getid3_writetags; use Helpers; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; -use Illuminate\Support\Facades\Auth; -use Illuminate\Support\Facades\Cache; -use Illuminate\Support\Facades\Config; -use Illuminate\Support\Facades\DB; -use Illuminate\Support\Facades\Log; -use Illuminate\Support\Facades\URL; +use Auth; +use Cache; +use Config; +use DB; +use Log; +use URL; use Illuminate\Support\Str; class Track extends Model diff --git a/config/cache.php b/config/cache.php index fa3644f0..80f6bfa7 100644 --- a/config/cache.php +++ b/config/cache.php @@ -74,6 +74,6 @@ return [ | */ - 'prefix' => 'ponyfm', + 'prefix' => 'ponyfm_', ]; diff --git a/resources/assets/scripts/app/filters/moment-from-now.coffee b/resources/assets/scripts/app/filters/moment-from-now.coffee index 21185b20..f258d5c6 100644 --- a/resources/assets/scripts/app/filters/moment-from-now.coffee +++ b/resources/assets/scripts/app/filters/moment-from-now.coffee @@ -1,3 +1,3 @@ angular.module('ponyfm').filter 'momentFromNow', () -> (input) -> - moment(input).fromNow() \ No newline at end of file + moment.utc(input).fromNow()