accomodate different datetime package behaviors