I have a string that I am parsing that looks like this: "2006-05-23T13:19:00+01:00"
Can you assist in making sure I am converting to local time correctly? Right now, I'm doing something similar to this: //given vars are parsed from the string above //This statement below should convert the string above to UTC. //The given seconds in the example above is 3231235140 (seconds) //The given timezone in the case above is 60 (minutes) //I got daylightSavingAdjustment from prefs. //Question: How do I know what to put for daylight savings here? // I don't know what the daylight savings is for the provided // time, right? I just put my local daylight savings UTCDateSeconds = TimTimeZoneToUTC(givenDateSeconds, givenTimeZoneTotal, daylightSavingAdjustment); //Next I want to convert UTC to local //Timezone was retreived from prefs. //Daylightsavingadjustment is the same as above (retrieved from //local) LocalDateSeconds = TimUTCToTimeZone(UTCDateSeconds, timeZone, daylightSavingAdjustment); I would think that I would get the local converted seconds back here, but they aren't correct. Any ideas? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
