Corrected gmtoff_of usage and fix crash caused by commit 0be6827.