@tmsfe/tms-core 0.0.58 → 0.0.59

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/package.json +1 -1
  2. package/src/timeUtils.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
package/src/timeUtils.js CHANGED
@@ -153,7 +153,7 @@ const formatDateTime = (date, fmt = 'yyyy-MM-dd hh:mm:ss') => {
153
153
  */
154
154
  const dateToString = (date, withTime = false, withSeconds = false, join = '-') => {
155
155
  let fmt = `yyyy${join}MM${join}dd`;
156
- if (withTime) fmt += withSeconds ? 'hh:mm:ss' : 'hh:mm';
156
+ if (withTime) fmt += withSeconds ? ' hh:mm:ss' : ' hh:mm';
157
157
  return formatDateTime(date || new Date(), fmt);
158
158
  };
159
159