Editorial question147.9K views4,131 votes0 answers2,201 following
AI-generatedConfiguring TimeZoneInfo.ConvertTime to Accept an Explicit Source Time Zone for Unspecified DateTime Values
Goal: Convert a DateTime value whose Kind is Unspecified but which logically represents a specific time zone (e.g., Eastern Standard Time) to UTC while preserving the original zone’s identity for future conversions. Constraint: TimeZoneInfo.ConvertTime(DateTime, TimeZoneInfo) interprets Unspecified as the system local zone and provides no overload to supply