{"size": 279, "ext": "js", "max_stars_repo_path": "src/common/DateUtils.js", "max_stars_repo_name": "ray0711/garmin-connect", "max_stars_repo_stars_event_min_datetime": "2020-04-16T08:39:09.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-25T02:59:30.000Z", "max_issues_repo_path": "src/common/DateUtils.js", "max_issues_repo_name": "ray0711/garmin-connect", "max_issues_repo_issues_event_min_datetime": "2020-03-30T14:13:43.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-16T09:07:03.000Z", "max_forks_repo_path": "src/common/DateUtils.js", "max_forks_repo_name": "ray0711/garmin-connect", "max_forks_repo_forks_event_min_datetime": "2020-03-28T10:39:33.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-15T19:50:25.000Z"}
{"max_stars_count": 43, "max_issues_count": 26, "max_forks_count": 13, "avg_line_length": 25.3636363636, "max_line_length": 71, "alphanum_fraction": 0.6487455197}
const toDateString = (date) => {
    const offset = date.getTimezoneOffset();
    const offsetDate = new Date(date.getTime() - (offset * 60 * 1000));
    const [dateString] = offsetDate.toISOString().split('T');
    return dateString;
};

module.exports = {
    toDateString,
};
