Bad conversion timezone date

Help
Lisca75
2006-02-18
2013-03-22
  • Lisca75
    Lisca75
    2006-02-18

    Hi,
    I'm using your feeds parser, but I've some problems with timezone conversion.
    I'm in California, and I want to uniform the date to GMT, but when I read some feeds it gives me bad conversions.
    i.e.
    this is the EST time:

    Sun, 12 Feb 2006 21:05:00 EST

    and when I run the parser, the following line

    self.date = time.gmtime(time.mktime(data.modified_parsed))

    gives me:

    (2006, 2, 13, 10, 5, 0, 0, 44, 0)

    and I don't know what it is going on. It seems to add the timezone difference between the East coast and the GMT plus the difference hours from the west coast, where it runs, and the GMT zone.

    may be it is only a my error.

    Thanks a lot

    MArco