larxius commited on
Commit
b14f8d1
·
verified ·
1 Parent(s): 07a5fa4

Update frontend/src/main.jsx

Browse files
Files changed (1) hide show
  1. 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(...args) {
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(...args) {
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(...args) {
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();