mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-28 23:57:59 +01:00
Fixes T373: Moment.js now assumes whatever it's given is UTC.
This commit is contained in:
parent
ec838559e3
commit
7d047a41e4
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||||
|
|
|
@ -74,6 +74,6 @@ return [
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'prefix' => 'ponyfm',
|
'prefix' => 'ponyfm_',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
angular.module('ponyfm').filter 'momentFromNow', () ->
|
angular.module('ponyfm').filter 'momentFromNow', () ->
|
||||||
(input) ->
|
(input) ->
|
||||||
moment(input).fromNow()
|
moment.utc(input).fromNow()
|
||||||
|
|
Loading…
Reference in a new issue