Simple time zone which pretends to always be in summer time, since that's what shows the failure.
| 243 | DSTDIFF = DSTOFFSET = timedelta(hours=1) |
| 244 | |
| 245 | class UKSummerTime(tzinfo): |
| 246 | """Simple time zone which pretends to always be in summer time, since |
| 247 | that's what shows the failure. |
| 248 | """ |
| 249 | |
| 250 | def utcoffset(self, dt): |
| 251 | return DSTOFFSET |
| 252 | |
| 253 | def dst(self, dt): |
| 254 | return DSTDIFF |
| 255 | |
| 256 | def tzname(self, dt): |
| 257 | return 'UKSummerTime' |
| 258 | |
| 259 | tz = UKSummerTime() |
| 260 | u = datetime(2014, 4, 26, 12, 1, tzinfo=tz) |
no outgoing calls
searching dependent graphs…