UNPKG

@gooin/garmin-connect-cn

Version:

Makes it simple to interface with Garmin Connect CN to get or set any data point

11 lines 424 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toDateString = void 0; function toDateString(date) { const offset = date.getTimezoneOffset(); const offsetDate = new Date(date.getTime() - offset * 60 * 1000); const [dateString] = offsetDate.toISOString().split('T'); return dateString; } exports.toDateString = toDateString; //# sourceMappingURL=DateUtils.js.map