Open toto975 opened 2 years ago
9.x
8.4.1
1.5
The date are formated in US Format in media manager
in vendor\tcg\voyager\resources\views\media\manager.blade.php, change
dateFilter: function(date) { if (!date) { return null; } var date = new Date(date * 1000); var month = "0" + (date.getMonth() + 1); var minutes = "0" + date.getMinutes(); var seconds = "0" + date.getSeconds(); var dateFormated = date.getFullYear() + '-' + month.substr(-2) + '-' + date.getDate() + ' ' + date.getHours() + ':' + minutes.substr(-2) + ':' + seconds.substr(-2); return dateFormated; },
to
dateFilter: function(date) { if (!date) { return null; } var date = new Date(date * 1000); return date.toLocaleString(); },
No response
Wait, is that what our code is currently doing? I have to agree, that's pretty terrible. We're absolutely open to PRs for this
Laravel version
9.x
PHP version
8.4.1
Voyager version
1.5
Description of problem
The date are formated in US Format in media manager
Proposed solution
in vendor\tcg\voyager\resources\views\media\manager.blade.php, change
to
Alternatives considered
No response
Additional context
No response