I live in Arizona. We of course do not change for DST. All of the
data that is inserted into our database is in Arizona time. My client
wants me to display the Time Zone the record was inserted in relation
to Eastern Time. So all of the dates should be displayed as either PST
or MST depanding on the time of the year.
I am trying to use IsDaylightSavingTime to find out if the date in the
database was inserted during DST. The code for my if condition is:
if(TimeZone.CurrentTimeZone.IsDaylightSavingTime(c allDate))
{
e.Item.Cells[2].Text = e.Item.Cells[2].Text + " PST";
}
else
{
e.Item.Cells[2].Text = e.Item.Cells[2].Text + " MST";
}
No matter if 'callDate' is 1/5/2005 or 7/5/2005 IsDaylightSavingTime
always returns false. I even tried changing my local box to Pacific
Timezone but it made no difference.
Is there something I am missing?
Thanks in advance,
Mike