@tim-code/my-util 0.0.9 → 0.0.10

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/time.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tim-code/my-util",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "author": "",
package/src/time.js CHANGED
@@ -41,7 +41,7 @@ export function getEasternTime({
41
41
  * @param {string=} $1.timezone Timezone to use instead of local time.
42
42
  * @returns {Object} { timestamp, date, time, minute, datetime }
43
43
  */
44
- export function getTime({ floorMinute, timestamp, timezone = false }) {
44
+ export function getTime({ floorMinute, timestamp, timezone = false } = {}) {
45
45
  return getEasternTime({ floorMinute, timestamp, timezone })
46
46
  }
47
47