getTime function added to LoginView