IO-1708 Revert time zone app side changes.

This commit is contained in:
Patrick Fic
2022-02-10 17:51:55 -08:00
parent a616921e2b
commit 85ccb36b2e
2 changed files with 3 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import { DatePicker } from "antd";
import moment from "moment-timezone";
import moment from "moment";
import React, { useRef } from "react";
//To be used as a form element only.
@@ -29,16 +29,14 @@ export function FormDatePicker({
const handleChange = (newDate) => {
if (value !== newDate && onChange) {
console.log(newDate.tz(bodyshop.timezone));
onChange(newDate.tz(bodyshop.timezone));
onChange(newDate);
}
};
const handleKeyDown = (e) => {
if (e.key.toLowerCase() === "t") {
if (onChange) {
console.log(moment().tz(bodyshop.timezone));
onChange(moment().tz(bodyshop.timezone));
onChange(moment());
// if (ref.current && ref.current.blur) ref.current.blur();
}
} else if (e.key.toLowerCase() === "enter") {

View File

@@ -42,8 +42,6 @@ import axios from "axios";
import { messaging } from "../../firebase/firebase.utils";
import { getToken } from "firebase/messaging";
import moment from "moment-timezone";
export function* onEmailSignInStart() {
yield takeLatest(UserActionTypes.EMAIL_SIGN_IN_START, signInWithEmail);
}