Fix bugs with time picker
* Load UTC time correctly at page load * Don't translate to/from timezone when using the browser date/time input
This commit is contained in:
@ -10,6 +10,7 @@ import { useQuery } from "react-query";
|
||||
import "./styles.scss";
|
||||
import { useGuild } from "../App/useGuild";
|
||||
import { DEFAULT_COLOR } from "./Embed";
|
||||
import { useTimezone } from "../App/TimezoneProvider";
|
||||
|
||||
function defaultReminder(): Reminder {
|
||||
return {
|
||||
@ -38,7 +39,7 @@ function defaultReminder(): Reminder {
|
||||
tts: false,
|
||||
uid: "",
|
||||
username: "",
|
||||
utc_time: DateTime.now().toFormat("yyyy-LL-dd'T'HH:mm:ss"),
|
||||
utc_time: DateTime.now().setZone("UTC").toFormat("yyyy-LL-dd'T'HH:mm:ss"),
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user