~ubuntu-branches/ubuntu/quantal/python-tz/quantal

« back to all changes in this revision

Viewing changes to pytz/tzfile.py

  • Committer: Package Import Robot
  • Author(s): Andreas Hasenack, Forest Bond
  • Date: 2012-01-06 10:29:22 UTC
  • Revision ID: package-import@ubuntu.com-20120106102922-bwhn4iwh2qmw2n06
Tags: 2011k-0ubuntu3
[ Forest Bond ]
Add patch samoa-idl (LP: #885163).

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
                        break
98
98
                dst = inf[0] - prev_inf[0] # dst offset
99
99
 
100
 
                if dst <= 0: # Bad dst? Look further.
 
100
                # Bad dst? Look further. DST > 24 hours happens when
 
101
                # a timzone has moved across the international dateline.
 
102
                if dst <= 0 or dst > 3600*3:
101
103
                    for j in range(i+1, len(transitions)):
102
104
                        stdinf = ttinfo[lindexes[j]]
103
105
                        if not stdinf[1]: