Eliminate unneeded @scope variable
Reduce #parse_datetime to one line