feat: show time of publishing/editing

This commit is contained in:
daniyal 2024-08-13 23:15:45 +05:00
parent e06cec84fb
commit 01af3fa72e

View File

@ -517,7 +517,7 @@ const PublishDetails = ({
<p className='IBMSMSMBSSPost_PDElementText'> <p className='IBMSMSMBSSPost_PDElementText'>
{formatDate( {formatDate(
(published_at !== -1 ? published_at : edited_at) * 1000, (published_at !== -1 ? published_at : edited_at) * 1000,
'dd/MM/yyyy' 'dd/MM/yyyy hh:mm:ss aa'
)} )}
</p> </p>
</div> </div>
@ -538,7 +538,7 @@ const PublishDetails = ({
<path d='M362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32zM421.7 220.3L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3z' /> <path d='M362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32zM421.7 220.3L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3z' />
</svg> </svg>
<p className='IBMSMSMBSSPost_PDElementText'> <p className='IBMSMSMBSSPost_PDElementText'>
{formatDate(edited_at * 1000, 'dd/MM/yyyy')} {formatDate(edited_at * 1000, 'dd/MM/yyyy hh:mm:ss aa')}
</p> </p>
</div> </div>
<a <a