Front-end wokring after DB switch but not handling negative epoch time