projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[corlib] In a TimeZone test, UtcOffset is taken for the current year, so take Dayligh...
[mono.git]
/
mcs
/
class
/
corlib
/
Test
/
System
/
TimeZoneTest.cs
diff --git
a/mcs/class/corlib/Test/System/TimeZoneTest.cs
b/mcs/class/corlib/Test/System/TimeZoneTest.cs
index 6f97c359ebc9c9c36e5b56bdbf6b76bcca114680..47915f722b425e2200c4b8fb3da81903950d05aa 100644
(file)
--- a/
mcs/class/corlib/Test/System/TimeZoneTest.cs
+++ b/
mcs/class/corlib/Test/System/TimeZoneTest.cs
@@
-303,11
+303,12
@@
public class TimeZoneTest {
TimeZone tz = TimeZone.CurrentTimeZone;
TimeZone tz = TimeZone.CurrentTimeZone;
- DaylightTime daylightChanges = tz.GetDaylightChanges(2007);
+ int year = DateTime.Now.Year;
+ DaylightTime daylightChanges = tz.GetDaylightChanges(year);
DateTime dst_end = daylightChanges.End;
if (dst_end == DateTime.MinValue)
DateTime dst_end = daylightChanges.End;
if (dst_end == DateTime.MinValue)
- Assert.Ignore (tz.StandardName + " did not observe daylight saving time during
2007
.");
+ Assert.Ignore (tz.StandardName + " did not observe daylight saving time during
" + year + "
.");
var standardOffset = tz.GetUtcOffset(daylightChanges.Start.AddMinutes(-1));
var standardOffset = tz.GetUtcOffset(daylightChanges.Start.AddMinutes(-1));