Fix extraction of X time from button events.