mirror of https://github.com/mue/mue.git
AM/PM hotfix
This commit is contained in:
parent
5c682eac26
commit
85a3ce0769
|
@ -30,6 +30,8 @@ Development: Read the [Development](#development) section.
|
|||
Link: [Firefox Add-ons](https://addons.mozilla.org/firefox/addon/mue)
|
||||
|
||||
Development: Read the [Development](#development) section.
|
||||
### Edge (Chromium)
|
||||
Link: [Microsoft Edge Addons](https://microsoftedge.microsoft.com/addons/detail/aepnglgjfokepefimhbnibfjekidhmja)
|
||||
### Opera/Other
|
||||
Link: [GitHub Releases](https://github.com/ohlookitsderpy/Mue/releases)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"offline_enabled": true,
|
||||
"name": "Mue",
|
||||
"description": "Fast, open and free-to-use new tab page for most modern browsers.",
|
||||
"version": "0.7",
|
||||
"version": "0.7.1",
|
||||
"browser_action": {
|
||||
"default_icon": "./extension-icon.png"
|
||||
},
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"manifest_version": 2,
|
||||
"name": "Mue",
|
||||
"description": "Fast, open and free-to-use new tab page for most modern browsers.",
|
||||
"version": "0.7",
|
||||
"version": "0.7.1",
|
||||
"browser_action": {
|
||||
"default_icon": "./extension-icon.png"
|
||||
},
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"manifest_version": 2,
|
||||
"name": "Mue",
|
||||
"description": "Fast, open and free-to-use new tab page for most modern browsers.",
|
||||
"version": "0.7",
|
||||
"version": "0.7.1",
|
||||
"browser_action": {
|
||||
"default_icon": "./extension-icon.png"
|
||||
},
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"homepage": "https://muetab.xyz",
|
||||
"bugs": "https://github.com/muetab/mue/issues/new?assignees=&labels=bug&template=bug-report.md&title=%5BBUG%5D",
|
||||
"license": "BSD-3-Clause",
|
||||
"version": "0.7.0",
|
||||
"version": "0.7.1",
|
||||
"dependencies": {
|
||||
"@material-ui/core": "4.8.1",
|
||||
"@material-ui/icons": "^4.5.1",
|
||||
|
|
|
@ -12,13 +12,14 @@ export default class Clock extends React.Component {
|
|||
|
||||
startTime() {
|
||||
const t = new Date(); // Get the current date
|
||||
const a = t.getHours();
|
||||
let h = t.getHours(); // Get hours
|
||||
// const s = today.getSeconds();
|
||||
|
||||
if (h > 12) h = h - 12; // 12 hour support
|
||||
|
||||
this.setState({
|
||||
date: `${('0' + h).slice(-2)}:${('0' + t.getMinutes()).slice(-2)}`, ampm: h >= 12 ? 'AM' : 'PM'
|
||||
date: `${('0' + h).slice(-2)}:${('0' + t.getMinutes()).slice(-2)}`, ampm: a >= 12 ? 'PM' : 'AM'
|
||||
}); // Set time
|
||||
|
||||
this.timeout = setTimeout(() => this.startTime(), 750); // Update the clock every 750 milliseconds
|
||||
|
|
Loading…
Reference in New Issue