update tests to make time/date related tests run fine on both grid and local machines

Func tests failed when using firefox on grid because grid machine is using UTC time/date. This pr updates tests related time/date so that func tests can be run on both local machine and on Grid.