mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
e74e2e039e
no issue - switch `jscs` and `jshint` inline config to `eslint` config - fix eslint errors, predominantly in tests where the config now the main app config more closely
19 lines
427 B
JavaScript
19 lines
427 B
JavaScript
import {helper} from 'ember-helper';
|
|
|
|
export function timeToSchedule(params) {
|
|
if (!params || !params.length) {
|
|
return;
|
|
}
|
|
|
|
let [, blogTimezone] = params;
|
|
let [time] = params;
|
|
|
|
if (blogTimezone.get('isFulfilled')) {
|
|
return moment.utc(time).tz(blogTimezone.get('content')).format('DD MMM YYYY, HH:mm');
|
|
}
|
|
}
|
|
|
|
export default helper(function (params) {
|
|
return timeToSchedule(params);
|
|
});
|