View Single Post
Posts: 5 | Thanked: 2 times | Joined on Dec 2010
#482
Okay, I have a naive solution for the problem, not sure what this is going to do in the future, in erminig_core.py I made the following modification:

Code:
def iso8601ToTimestamp(date):
	"""
	@type date: str
	"""
	# FIXME: Google passes dtstart like 2008-12-10T00:00:00
	if not date[-6] in ('+', '-') and not date.endswith('Z'):
		date += 'Z'

+	if int(date[0:4]) > 2037:
+		return int(iso8601.parse(string.replace(date, date[:4], "2037", 1)))

	return int(iso8601.parse(date))
This wraps the dates above 2038 to the year 2037 in the phone calendar and prevents the overflow bug. I do not know if this screws things up elsewhere so proceed with caution.
 

The Following User Says Thank You to gdevenyi For This Useful Post: