Fixes T373: Moment.js now assumes whatever it's given is UTC.

This commit is contained in:
Peter Deltchev 2015-09-20 00:27:52 -07:00
parent ec838559e3
commit 7d047a41e4
3 changed files with 8 additions and 8 deletions

View file

@ -9,12 +9,12 @@ use getid3_writetags;
use Helpers; use Helpers;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\Auth; use Auth;
use Illuminate\Support\Facades\Cache; use Cache;
use Illuminate\Support\Facades\Config; use Config;
use Illuminate\Support\Facades\DB; use DB;
use Illuminate\Support\Facades\Log; use Log;
use Illuminate\Support\Facades\URL; use URL;
use Illuminate\Support\Str; use Illuminate\Support\Str;
class Track extends Model class Track extends Model

View file

@ -74,6 +74,6 @@ return [
| |
*/ */
'prefix' => 'ponyfm', 'prefix' => 'ponyfm_',
]; ];

View file

@ -1,3 +1,3 @@
angular.module('ponyfm').filter 'momentFromNow', () -> angular.module('ponyfm').filter 'momentFromNow', () ->
(input) -> (input) ->
moment(input).fromNow() moment.utc(input).fromNow()