corrected to work with PST time