mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-11 14:39:37 +00:00
fix(event): don't flatten start/end moments
This commit is contained in:
parent
cdaa504db4
commit
5ffdf09be4
1 changed files with 2 additions and 2 deletions
|
|
@ -18,8 +18,8 @@ export default {
|
|||
currentSeason: SHOP_OPEN ? upperFirst(CURRENT_EVENT.season) : 'Closed',
|
||||
|
||||
dateRange: {
|
||||
start: moment(CURRENT_EVENT.start).format('YYYY-MM-DD'),
|
||||
end: moment(CURRENT_EVENT.end).format('YYYY-MM-DD'),
|
||||
start: SHOP_OPEN ? moment(CURRENT_EVENT.start) : moment().subtract(1, 'days').toDate(),
|
||||
end: SHOP_OPEN ? moment(CURRENT_EVENT.end) : moment().subtract(1, 'seconds').toDate(),
|
||||
},
|
||||
|
||||
availableSets: SHOP_OPEN
|
||||
|
|
|
|||
Loading…
Reference in a new issue