Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/main.jsx
Browse files- frontend/src/main.jsx +3 -3
frontend/src/main.jsx
CHANGED
|
@@ -6,7 +6,7 @@ import App from './App.jsx'
|
|
| 6 |
// Safe Global Date Format Overrides
|
| 7 |
const originalToLocaleDateString = Date.prototype.toLocaleDateString;
|
| 8 |
|
| 9 |
-
Date.prototype.toLocaleDateString = function(
|
| 10 |
if (isNaN(this.getTime())) return 'N/A';
|
| 11 |
try {
|
| 12 |
const day = this.getDate();
|
|
@@ -18,7 +18,7 @@ Date.prototype.toLocaleDateString = function(...args) {
|
|
| 18 |
}
|
| 19 |
};
|
| 20 |
|
| 21 |
-
Date.prototype.toLocaleString = function(
|
| 22 |
if (isNaN(this.getTime())) return 'N/A';
|
| 23 |
try {
|
| 24 |
const day = this.getDate();
|
|
@@ -38,7 +38,7 @@ Date.prototype.toLocaleString = function(...args) {
|
|
| 38 |
}
|
| 39 |
};
|
| 40 |
|
| 41 |
-
Date.prototype.toLocaleTimeString = function(
|
| 42 |
if (isNaN(this.getTime())) return 'N/A';
|
| 43 |
try {
|
| 44 |
let hours = this.getHours();
|
|
|
|
| 6 |
// Safe Global Date Format Overrides
|
| 7 |
const originalToLocaleDateString = Date.prototype.toLocaleDateString;
|
| 8 |
|
| 9 |
+
Date.prototype.toLocaleDateString = function() {
|
| 10 |
if (isNaN(this.getTime())) return 'N/A';
|
| 11 |
try {
|
| 12 |
const day = this.getDate();
|
|
|
|
| 18 |
}
|
| 19 |
};
|
| 20 |
|
| 21 |
+
Date.prototype.toLocaleString = function() {
|
| 22 |
if (isNaN(this.getTime())) return 'N/A';
|
| 23 |
try {
|
| 24 |
const day = this.getDate();
|
|
|
|
| 38 |
}
|
| 39 |
};
|
| 40 |
|
| 41 |
+
Date.prototype.toLocaleTimeString = function() {
|
| 42 |
if (isNaN(this.getTime())) return 'N/A';
|
| 43 |
try {
|
| 44 |
let hours = this.getHours();
|