zhl-methods 1.1.15 → 1.1.16

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.
Files changed (2) hide show
  1. package/js/ScanUDI.js +1 -0
  2. package/package.json +1 -1
package/js/ScanUDI.js CHANGED
@@ -107,6 +107,7 @@ export default class ScanUDI {
107
107
  setDateFormat(date, type, expand) {
108
108
  try {
109
109
  if (date) {
110
+ date = dayjs(date);
110
111
  if (date.length === 8 && date.substr(date.length - 2) == "00") {
111
112
  if (type === "expiry") {
112
113
  date = dayjs(date).endOf("month");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zhl-methods",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "license": "ISC",
5
5
  "dependencies": {
6
6
  "dayjs": "^1.11.15",