mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
12 lines
294 B
JavaScript
12 lines
294 B
JavaScript
import Helper from '@ember/component/helper';
|
|
import moment from 'moment';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class MomentSiteTz extends Helper {
|
|
@service settings;
|
|
|
|
compute([date]) {
|
|
return moment.tz(date, this.settings.get('timezone'));
|
|
}
|
|
}
|