File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,18 @@ export default (dateStr, hideTime) => {
1313 if ( hideTime ) {
1414 if ( isToday ) { result = 'Today' }
1515 else if ( isMaxDate ) { result = 'Permanent' } // bans
16- else { result = dayjs ( dateStr ) . format ( 'MMMM d , YYYY' ) }
16+ else { result = dayjs ( dateStr ) . format ( 'MMMM D , YYYY' ) }
1717 }
1818 else {
1919 if ( timezone ) {
20- if ( isToday ) { result = 'Today at ' + dayjs ( dateStr ) . format ( 'h:mm a ' ) . tz ( timezone ) }
21- else if ( isThisYear ) { result = dayjs ( dateStr ) . format ( 'MMMM d [at] h:mm a ' ) . tz ( timezone ) }
22- else { result = dayjs ( dateStr ) . format ( 'MMM d , YYYY [at] h:mm a ' ) . tz ( timezone ) }
20+ if ( isToday ) { result = 'Today at ' + dayjs ( dateStr ) . format ( 'h:mm A ' ) . tz ( timezone ) }
21+ else if ( isThisYear ) { result = dayjs ( dateStr ) . format ( 'MMMM D [at] h:mm A ' ) . tz ( timezone ) }
22+ else { result = dayjs ( dateStr ) . format ( 'MMM D , YYYY [at] h:mm A ' ) . tz ( timezone ) }
2323 }
2424 else {
25- if ( isToday ) { result = 'Today at ' + dayjs ( dateStr ) . format ( 'h:mm a ' ) }
26- else if ( isThisYear ) { result = dayjs ( dateStr ) . format ( 'MMMM d [at] h:mm a ' ) }
27- else { result = dayjs ( dateStr ) . format ( 'MMM d , YYYY [at] h:mm a ' ) }
25+ if ( isToday ) { result = 'Today at ' + dayjs ( dateStr ) . format ( 'h:mm A ' ) }
26+ else if ( isThisYear ) { result = dayjs ( dateStr ) . format ( 'MMMM D [at] h:mm A ' ) }
27+ else { result = dayjs ( dateStr ) . format ( 'MMM D , YYYY [at] h:mm A ' ) }
2828 }
2929 }
3030 return result
You can’t perform that action at this time.
0 commit comments