Me being thick?
Erel, I think I have misunderstood you. I thought you were telling me all I had to do is call DateUtils.SetDateAndTime(Yr,Mo,Da,Ho,Mi,Se,Tz) where timezone is the timezoneoffset for that date. It doesn't work for me.
Here is my code:-
UTC1 = DateUtils.SetDateAndTime(Yr,Mo,Da,Ho,Mi,Se)
Tz=DateTime.GetTimeZoneOffsetAt(UTC1)
UTC2=DateUtils.SetDateAndTime2(Yr,Mo,Da,Ho,Mi,Se,Tz)
This work fine for all dates in the UK.
First I ran the app using todays date (GMT+1) It worked for all dates thru to May 2014 (including winter dates where the fixtures are played on GMT+0).
Next I set the tablet date to 25/12/2012 (in the GMT+0 timezone) and ran again. Again it worked for all dates.
Next I set my tablet's date back to today and set the tablet's timezone to EST (GMT-4). I reloaded the calendar and it shows all the fixtures at the correct LONDON time, ie 15:00, not 10:00 when the game is played in New York.
I have fiddled with the calendar settings (General settings, Home time zone set to either EST or BST and 'use home time zone'). EST shows the time as 15:00, not 10:00. BST makes it worse. Fixures show at 20:00, not 10:00.
Is there a way of making SetDateandtime2 work as I need, ie when a fixture starts at 15:00 in London (either BST or GMT, depending on the date), then the calendar date will show as 15:00 in the UK, 10:00 in the US, 17:00 in Germany, etc?
Its driving me nuts!
Malc