connamara/quickfixn — pull request #138 by Formator (2012-11-01 11:08:47+00:00)
Title: TimeZone problem and Daylight Saving Time

We have another problem with TimeZone setting. 2 test fail on my local.
Tests run: 201, Errors: 0, Failures: 2, Inconclusive: 0, Time: 9,7275564 seconds

Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0

Errors and Failures:
1) Test Failure : UnitTests.SessionScheduleTests.testLastEndTime_DailySessions
Expected: 2012-10-17 16:00:00.000
But was: 2012-10-17 09:00:00.000
at UnitTests.SessionScheduleTests.testLastEndTime_DailySessions() in \SessionScheduleTests.cs:line 368

2) Test Failure : UnitTests.SessionScheduleTests.testLastEndTime_WeeklySessions
Expected: 2012-10-12 16:00:00.000
But was: 2012-10-12 09:00:00.000
at UnitTests.SessionScheduleTests.testLastEndTime_WeeklySessions() in \SessionScheduleTests.cs:line 410

My local is set on (UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague

This PR have fix for that problem
- SessionSchedule.LastEndTime: When TimeZone is specified in setting, result must be converted from that TimeZone to UTC before return
- SessionScheduleTests.testLastEndTime_DailySessions; testLastEndTime_WeeklySessions: Test for TimeZone setting must respect also Daylight Saving Time.