We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8785532 commit 3a8ad44Copy full SHA for 3a8ad44
src/main.tsx
@@ -15,5 +15,5 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
15
// print build time in production
16
if (import.meta.env.PROD) {
17
// @ts-ignore
18
- console.log('Build Time', __BUILD_TIME__);
+ console.log('Build Time', new Date(__BUILD_TIME__).toLocaleString());
19
}
vite.config.ts
@@ -8,7 +8,7 @@ export default defineConfig({
8
plugins: [UnoCSS(), react()],
9
base: "/react-base-virtual-list",
10
define: {
11
- __BUILD_TIME__: JSON.stringify(new Date().toLocaleString()),
+ __BUILD_TIME__: JSON.stringify(new Date().toISOString()),
12
},
13
build: {
14
outDir: "dist-demo",
0 commit comments