المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Timezone parsing issue - "Date" is wrong (but offset in terms of hours/minutes correct)



C# Programming
12-09-2011, 11:41 AM
Timezone parsing issue - borrowing code from here (http://hashfactor.wordpress.com/2009/02/02/c-parsing-datetime-with-timezone/#comment-392)[^ (http://hashfactor.wordpress.com/2009/02/02/c-parsing-datetime-with-timezone/#comment-392)]

When parsing for example “4:01PM EST”, we offset the time by five hours – date string becomes “4:01PM -0500