Compare commits

...

2 Commits

Author SHA1 Message Date
Marco Lanzara
19158357fb 🚀 Release v1.0.29
- Tipo: patch
- Database backup: database-backups/vigilanzaturni_v1.0.29_20251021_171921.sql.gz
- Data: 2025-10-21 17:19:38
2025-10-21 17:19:38 +00:00
marco370
c2c35b62b5 Fix time display to prevent incorrect hour shifts
Correct the time formatting logic in the general planning component to explicitly use UTC, resolving an issue where shifts of +2 hours were incorrectly applied due to local timezone conversions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/qoWuIE4
2025-10-21 17:06:41 +00:00
4 changed files with 15 additions and 3 deletions

View File

@ -72,9 +72,15 @@ interface GeneralPlanningResponse {
} }
// Helper per formattare orario in formato italiano 24h (HH:MM) // Helper per formattare orario in formato italiano 24h (HH:MM)
// IMPORTANTE: usa timeZone UTC per evitare shift di +2 ore
const formatTime = (dateString: string) => { const formatTime = (dateString: string) => {
const date = new Date(dateString); const date = new Date(dateString);
return date.toLocaleTimeString("it-IT", { hour: "2-digit", minute: "2-digit", hour12: false }); return date.toLocaleTimeString("it-IT", {
hour: "2-digit",
minute: "2-digit",
hour12: false,
timeZone: "UTC" // Evita conversione timezone locale (+2h in Italia)
});
}; };
// Helper per formattare data in formato italiano (gg/mm/aaaa) // Helper per formattare data in formato italiano (gg/mm/aaaa)

View File

@ -1,7 +1,13 @@
{ {
"version": "1.0.28", "version": "1.0.29",
"lastUpdate": "2025-10-21T16:56:37.634Z", "lastUpdate": "2025-10-21T17:19:38.090Z",
"changelog": [ "changelog": [
{
"version": "1.0.29",
"date": "2025-10-21",
"type": "patch",
"description": "Deployment automatico v1.0.29"
},
{ {
"version": "1.0.28", "version": "1.0.28",
"date": "2025-10-21", "date": "2025-10-21",