cfdca04df9
Added robust date handling to prevent 'Invalid time value' errors when exporting dose history and share links. The code now safely handles: - Date objects that might be invalid - Timestamps stored as numbers or strings - Missing or null values Falls back to current date if conversion fails.