manuelbarbe / ht-history

Automatically exported from code.google.com/p/ht-history
4 stars 1 forks source link

Matches may be lost when local time is not hattrick time #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Match archive is requested until DateTime.Now, which is local time. So if local 
time is i.e. 1st September 2011, 6 a.m., but hattrick time is still 31th August 
2011, 10 p.m., ht-history reads and stores August 2011 as complete. But there 
may be a match at 31/08/2011 11 p.m. ht-time. This is lost.

Fix this by changing request to ht-time, i.e. 
DateTime.Now.ToUniversalTime().AddHours(1). This needs to be verified with 
respect to daylight saving time.

Original issue reported on code.google.com by manuel.b...@gmail.com on 8 Sep 2011 at 7:54

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r25.

Original comment by `` on 29 Sep 2011 at 7:51