// @flow
import moment from 'moment-timezone'
export {moment}

export const dayMoment = (time: string, format: ?string = 'ddd h:mma') =>
	moment.tz(time, format, false, 'US/Central')
export const hourMoment = (time: string) =>
	moment.tz(time, 'h:mma', false, 'US/Central')
export const plainMoment = (time: string, format: string) =>
	moment.tz(time, format, false, 'US/Central')

// @flow
import moment from 'moment-timezone'
export {moment}

const CENTRAL_TZ = 'US/Central'

export const dayMoment = (time: string, format: ?string = 'ddd h:mma') =>
	moment.tz(time, format, false, CENTRAL_TZ)
export const hourMoment = (time: string) =>
	moment.tz(time, 'h:mma', false, CENTRAL_TZ)
export const plainMoment = (time: string, format: string) =>
	moment.tz(time, format, false, CENTRAL_TZ)

Change tests to use a constant
building-hours: Change tests to use a constant

Signed-off-by: Kristofer Rye <1ed31cfd0b53bc3d1689a6fee6dbfc9507dffd22@gmail.com>
