chat: correct datestamp to match @da

The datestamp in webchat currently leftpads the month numeral.
This commit amends it so that the month numeral doesn't pad with zeroes.
This commit is contained in:
Matilde Park 2020-01-01 08:54:36 +01:00
parent f4ed556717
commit 271e594f61
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -89,7 +89,7 @@ export class Message extends Component {
render() {
const { props } = this;
let pending = !!props.msg.pending ? ' o-40' : '';
let datestamp = "~" + moment.unix(props.msg.when / 1000).format('YYYY.MM.D');
let datestamp = "~" + moment.unix(props.msg.when / 1000).format('YYYY.M.D');
let paddingTop = props.paddingTop ? {'paddingTop': '6px'} : '';