@financial-times/community-event-teaser
Advanced tools
Comparing version 11.4.1-alpha.2229.0 to 11.4.1-alpha.2235.0
@@ -318,3 +318,3 @@ 'use strict'; | ||
function Timestamp$1(_a) { | ||
var scheduledStartTime = _a.scheduledStartTime, scheduledEndTime = _a.scheduledEndTime, _b = _a.showTime, showTime = _b === void 0 ? false : _b, _c = _a.showEndDate, showEndDate = _c === void 0 ? false : _c; _a.timezone; | ||
var scheduledStartTime = _a.scheduledStartTime, scheduledEndTime = _a.scheduledEndTime, _b = _a.showTime, showTime = _b === void 0 ? false : _b, _c = _a.showEndDate, showEndDate = _c === void 0 ? false : _c, _d = _a.timezone, timezone = _d === void 0 ? 'Europe/London' : _d; | ||
var isValidStartTime = communityEventCommon.isDate(scheduledStartTime); | ||
@@ -325,9 +325,9 @@ var isValidEndTime = communityEventCommon.isDate(scheduledEndTime); | ||
if (scheduledEndTime && isValidStartTime && isValidEndTime && showTime) { | ||
formattedStartDate = communityEventCommon.formatEventDateTime(scheduledStartTime, scheduledEndTime); | ||
formattedStartDate = communityEventCommon.formatEventDateTime(scheduledStartTime, scheduledEndTime, timezone); | ||
} | ||
else if (isValidStartTime) { | ||
formattedStartDate = communityEventCommon.formatEventDate(scheduledStartTime); | ||
formattedStartDate = communityEventCommon.formatEventDate(scheduledStartTime, timezone); | ||
} | ||
if (showEndDate && isValidEndTime) { | ||
formattedEndDate = communityEventCommon.formatEventDate(scheduledEndTime); | ||
formattedEndDate = communityEventCommon.formatEventDate(scheduledEndTime, timezone); | ||
} | ||
@@ -334,0 +334,0 @@ var start; |
@@ -63,9 +63,9 @@ 'use strict'; | ||
if (scheduledEndTime && isValidStartTime && isValidEndTime && showTime) { | ||
formattedStartDate = communityEventCommon.formatEventDateTime(scheduledStartTime, scheduledEndTime); | ||
formattedStartDate = communityEventCommon.formatEventDateTime(scheduledStartTime, scheduledEndTime, timezone); | ||
} | ||
else if (isValidStartTime) { | ||
formattedStartDate = communityEventCommon.formatEventDate(scheduledStartTime); | ||
formattedStartDate = communityEventCommon.formatEventDate(scheduledStartTime, timezone); | ||
} | ||
if (showEndDate && isValidEndTime) { | ||
formattedEndDate = communityEventCommon.formatEventDate(scheduledEndTime); | ||
formattedEndDate = communityEventCommon.formatEventDate(scheduledEndTime, timezone); | ||
} | ||
@@ -72,0 +72,0 @@ let start; |
{ | ||
"name": "@financial-times/community-event-teaser", | ||
"version": "11.4.1-alpha.2229.0", | ||
"version": "11.4.1-alpha.2235.0", | ||
"description": "community event teasers etc", | ||
@@ -47,7 +47,7 @@ "main": "dist/index.js", | ||
"@financial-times/community-event-client": "^1.3.0", | ||
"@financial-times/community-event-common": "^0.1.5-alpha.2229.0", | ||
"@financial-times/community-event-common": "^0.1.5-alpha.2235.0", | ||
"date-fns": "^2.29.3", | ||
"date-fns-tz": "^2.0.1" | ||
}, | ||
"gitHead": "c6c00dc0dda3b8f000be1b39b2b324c705dc3fac" | ||
"gitHead": "58b962f40898c4c93baba991d32946db065fa6b1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
112124