@govuk-pay/pay-js-commons 6.0.26 → 6.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,6 +9,8 @@ module.exports = function (isoTimeString, format) {
|
|
|
9
9
|
formatString = 'D MMMM YYYY';
|
|
10
10
|
} else if (format === 'time') {
|
|
11
11
|
formatString = 'HH:mm:ss';
|
|
12
|
+
} else if (format === 'datetime') {
|
|
13
|
+
formatString = 'D MMMM YYYY HH:mm';
|
|
12
14
|
}
|
|
13
15
|
return moment(isoTimeString).tz('Europe/London').format(formatString);
|
|
14
16
|
};
|