Place: Fix modified_on date format to pass into functions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-11 17:54:13 +01:00
parent 8aa2524e7f
commit b61bb805e8

View File

@@ -56,9 +56,10 @@
// Define dates
$: latestPhoto = photos[0]
$: dateUpdatedFull = latestPhoto ? formatDate(latestPhoto.modified_on, 'FULL') : ''
$: dateUpdatedDatetime = latestPhoto ? formatDate(latestPhoto.modified_on, 'DATETIME') : ''
$: dateUpdatedRelative = latestPhoto ? relativeTime(latestPhoto.modified_on, 2592000000) : ''
$: latestPhotoModified = latestPhoto.modified_on.replace(' ', 'T')
$: dateUpdatedFull = latestPhoto ? formatDate(latestPhotoModified, 'FULL') : ''
$: dateUpdatedDatetime = latestPhoto ? formatDate(latestPhotoModified, 'DATETIME') : ''
$: dateUpdatedRelative = latestPhoto ? relativeTime(latestPhotoModified, 2592000000) : ''
/*