this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Need more datetime detail for Edit History

+10 -2
+8 -1
src/components/status.jsx
··· 1295 1295 return ( 1296 1296 <li key={createdAt} class="history-item"> 1297 1297 <h3> 1298 - <time>{niceDateTime(createdAtDate)}</time> 1298 + <time> 1299 + {niceDateTime(createdAtDate, { 1300 + formatOpts: { 1301 + weekday: 'short', 1302 + second: 'numeric', 1303 + }, 1304 + })} 1305 + </time> 1299 1306 </h3> 1300 1307 <Status 1301 1308 status={status}
+2 -1
src/utils/nice-date-time.js
··· 1 - function niceDateTime(date, { hideTime } = {}) { 1 + function niceDateTime(date, { hideTime, formatOpts } = {}) { 2 2 if (!(date instanceof Date)) { 3 3 date = new Date(date); 4 4 } ··· 12 12 // Hide time if requested 13 13 hour: hideTime ? undefined : 'numeric', 14 14 minute: hideTime ? undefined : 'numeric', 15 + ...formatOpts, 15 16 }).format(date); 16 17 return dateText; 17 18 }