185
189
base_time = time.strptime(date[:dot_loc], "%a %Y-%m-%d %H:%M:%S")
186
190
fract_seconds, offset = date[dot_loc:].split()
187
191
fract_seconds = float(fract_seconds)
191
199
# time.mktime returns localtime, but calendar.timegm returns UTC time
192
200
timestamp = calendar.timegm(base_time)
194
202
# Add back in the fractional seconds
195
203
timestamp += fract_seconds
199
207
class BundleSerializer(object):