Fix epoch calculation, verified by @ppsspp213