UNPKG

garmin-connect

Version:

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

11 lines 414 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