def fix_imessage_date(seconds):
    """
    Convert seconds to unix epoch time.
    
    iMessage dates are not standard unix time.  They begin at midnight on 
    2001-01-01, instead of the usual 1970-01-01.
    
    To convert to unix time, add 978,307,200 seconds!
    
    Source: http://d.hatena.ne.jp/sak_65536/20111017/1318829688
    (Thanks, Google Translate!)
    """
    return seconds + 978307200