Fixes time behavior for DST, and adds a user-defined constant.