def utc2local(date):
date_offset = (datetime.now() - datetime.utcnow())<EOL>date_offset = (date_offset.microseconds +<EOL>(date_offset.seconds + date_offset.days * <NUM_LIT> * <NUM_LIT>) * <NUM_LIT>) / <NUM_LIT><EOL>date_offset = int(round(date_offset / <NUM_LIT> / <NUM_LIT>))<EOL>return date + timedelta(hours=date_offset)<EOL>
DokuWiki returns date with a +0000 timezone. This function convert *date*
    to the local time.