Addingown function for printing the local time in views