- Notifications
You must be signed in to change notification settings - Fork18.4k
Commit370a9c9
[release-branch.go1.3] time: removed from tests now obsolete assumption about Australian tz abbreviations
««« CL 130920043 / 7dba9475ee72time: removed from tests now obsolete assumption about Australian tz abbreviationsAustralian timezones abbreviation for standard and daylight saving time were recentlychanged from EST for both to AEST and AEDT in the icann tz database (see changelogonwww.iana.org/time-zones).A test in the time package was written to check that the ParseInLocation functionunderstand that Feb EST and Aug EST are different time zones, even though they areboth called EST. This is no longer the case, and the Date function now returnsAEST or AEDT for australian tz on every Linux system with an up to date tz database(and this makes the test fail).Since I wasn't able to find another country that 1) uses daylight saving and 2) hasthe same abbreviation for both on tzdata, I changed the test to make sure thatParseInLocation does not get confused when it parses, in different locations, twodates with the same abbreviation (this was suggested in the mailing list).Fixes#8547.LGTM=bradfitzR=golang-codereviews, bradfitzCC=golang-codereviewshttps://golang.org/cl/130920043»»»LGTM=dsymondsR=rsc, dsymondsCC=golang-codereviewshttps://golang.org/cl/1537200431 parentf3c81ed commit370a9c9
1 file changed
+21
-15
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
186 |
| - | |
187 |
| - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
188 | 192 |
| |
189 | 193 |
| |
190 | 194 |
| |
191 | 195 |
| |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
| 196 | + | |
196 | 197 |
| |
197 | 198 |
| |
198 | 199 |
| |
199 |
| - | |
| 200 | + | |
200 | 201 |
| |
201 |
| - | |
| 202 | + | |
202 | 203 |
| |
203 | 204 |
| |
204 |
| - | |
205 |
| - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
206 | 212 |
| |
207 | 213 |
| |
208 |
| - | |
| 214 | + | |
209 | 215 |
| |
210 | 216 |
| |
211 | 217 |
| |
212 |
| - | |
| 218 | + | |
213 | 219 |
| |
214 |
| - | |
| 220 | + | |
215 | 221 |
| |
216 | 222 |
| |
217 |
| - | |
218 |
| - | |
| 223 | + | |
| 224 | + | |
219 | 225 |
| |
220 | 226 |
| |
221 | 227 |
| |
|
0 commit comments
Comments
(0)