math/octave: fix gmtime, localtime errors via brute force