locked
IsDaylightSavingTime RRS feed

  • Question

  • User1823730432 posted

    Hi the daylight savings for indian is set to true when they don't have dst

    does anyone have a solution for this

    Other countries seem to work correctly


    <country id="India">

    <city>Agra</city>

    <utc>5.3</utc>

    <gmt>5.3</gmt>

    <dst><%= TimeZone.CurrentTimeZone.IsDaylightSavingTime(DateAdd(DateInterval.Hour, 5.3, DateTime.Parse(DateTime.UtcNow).AddMinutes(Double.Parse(30)))) %></dst>

    <dstTime><%= DateAdd(DateInterval.Hour, 6.3, DateTime.Parse(DateTime.UtcNow).AddMinutes(Double.Parse(30))) %></dstTime>

    <currentTime><%= DateAdd(DateInterval.Hour, 5.3, DateTime.Parse(DateTime.UtcNow).AddMinutes(Double.Parse(30))) %></currentTime>

    </country>

    Saturday, November 14, 2009 3:56 PM

Answers