139
139
raise ValueError("time data %r does not match format " % date_str
140
140
+ "'%Y-%m-%d %H:%M:%S %z'")
141
141
secs_str = match.group(1)
144
147
tm_time = time.strptime(secs_str, '%Y-%m-%d %H:%M:%S')
145
148
# adjust seconds according to offset before converting to POSIX
146
149
# timestamp, to avoid edge problems