feat(translations): add translation support to welcome modal, fix clock

This commit is contained in:
David Ralph
2021-07-02 21:59:58 +01:00
parent d91490874c
commit 8ece0a7eb0
13 changed files with 351 additions and 77 deletions

View File

@@ -49,7 +49,7 @@ export default class Clock extends React.PureComponent {
if (localStorage.getItem('timeformat') === 'twentyfourhour') {
if (zero === 'false') {
time = `${now.getHours()}:${('00' + now.getMinutes()).slice(-2)}:${('00' + now.getMinutes()).slice(-2)}`;
time = `${now.getHours()}:${('00' + now.getMinutes()).slice(-2)}${sec}`;
} else {
time = `${('00' + now.getHours()).slice(-2)}:${('00' + now.getMinutes()).slice(-2)}${sec}`;
}