@absreim/react-bootstrap-data-grid 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,6 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { useState } from "react";
13
13
  import StringFilterRow from "./StringFilterRow";
14
- import { datetimeInputStrToUtc } from "../util/datetime";
15
14
  import NumberFilterRow from "./NumberFilterRow";
16
15
  import useFormStateFromTableFilterState from "./useFormStateFromTableFilterState";
17
16
  import DateFilterRow from "./DateFilterRow";
@@ -40,11 +39,8 @@ var convertFilterFormStateToEditableState = function (filterFormState) {
40
39
  type: rowFilterFormState.type,
41
40
  enabled: rowFilterFormState.enabled,
42
41
  };
43
- var strModifierFn_1 = rowFilterFormState.type === "date"
44
- ? function (str) { return str; }
45
- : datetimeInputStrToUtc;
46
42
  var inputStrToDate = function (str) {
47
- return str === "" ? null : new Date(strModifierFn_1(str));
43
+ return str === "" ? null : new Date(str);
48
44
  };
49
45
  switch (rowFilterFormState.scheme) {
50
46
  case "startFrom": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@absreim/react-bootstrap-data-grid",
3
3
  "description": "Data grid UI component for use with web apps using React and Bootstrap",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "license": "MIT",
6
6
  "author": "Brook Li",
7
7
  "homepage": "https://react-bootstrap-data-grid.vercel.app/",
@@ -1,3 +1,2 @@
1
1
  export declare const dateToInputStr: (date: Date) => string;
2
2
  export declare const dateToDatetimeInputStr: (date: Date) => string;
3
- export declare const datetimeInputStrToUtc: (datetimeStr: string) => string;
package/util/datetime.js CHANGED
@@ -3,7 +3,3 @@ export var dateToInputStr = function (date) { return dayjs(date).format("YYYY-MM
3
3
  export var dateToDatetimeInputStr = function (date) {
4
4
  return dayjs(date).format("YYYY-MM-DDTHH:mm");
5
5
  };
6
- // All dates and datetimes that the grid displays are in UTC. The datetime
7
- // string in the value attribute of an input element of type datetime-local
8
- // is based on the local timezone of the client.
9
- export var datetimeInputStrToUtc = function (datetimeStr) { return datetimeStr + "Z"; };