installed moment package to parse datetime since posting

This commit is contained in:
ChrQR 2024-06-11 08:49:25 +02:00
parent ae89a79b46
commit a43e91e16c
3 changed files with 12 additions and 0 deletions

9
package-lock.json generated
View File

@ -14,6 +14,7 @@
"clsx": "^2.1.1",
"html-react-parser": "^5.1.10",
"lucide-react": "^0.390.0",
"moment": "^2.30.1",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",
@ -3715,6 +3716,14 @@
"node": ">=16 || 14 >=14.17"
}
},
"node_modules/moment": {
"version": "2.30.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
"engines": {
"node": "*"
}
},
"node_modules/ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",

View File

@ -15,6 +15,7 @@
"clsx": "^2.1.1",
"html-react-parser": "^5.1.10",
"lucide-react": "^0.390.0",
"moment": "^2.30.1",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",

View File

@ -1,6 +1,8 @@
import moment from "moment";
import TheHub from "./TheHub";
export default async function Home() {
const time = "2024-06-11T08:44:33.85198+02:00";
return (
<main className="container">
<div>