Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/vue-cal/utils/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ export default class DateUtils {
* Simply takes a Date and returns the associated time in minutes (sum of hours + minutes).
*
* @param {Date} date the JavaScript Date to extract minutes from.
* @return {Number} the number of minutes (total of hours plus minutes).
* @return {Number} the number of minutes (total of hours plus minutes plus fractional seconds).
*/
dateToMinutes = date => date.getHours() * 60 + date.getMinutes()
dateToMinutes = date => date.getHours() * 60 + date.getMinutes() + date.getSeconds() / 60

/**
* Count the number of days this date range spans onto.
Expand Down