Skip to content

Commit

Permalink
0.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
borkanee committed Feb 9, 2024
1 parent 0afe8f4 commit b99d322
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var sameMonth = function sameMonth(start, end) {
return end.month() === start.month();
};
var sameDayOrNight = function sameDayOrNight(start, end) {
return end.isSame(start, 'day') || end.diff(start, 'hour') < 24 && end.hour() < 8;
return end.date() === start.date() || end.diff(start, 'hour') < 24 && end.hour() < 8;
};

module.exports = function (_ref2, format) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pretty-dates",
"description": "A simple lib for formatting a time span pretty with moment.js",
"version": "0.0.14",
"version": "0.0.15",
"main": "index.js",
"dependencies": {
"dayjs": "^1.11.10"
Expand Down

0 comments on commit b99d322

Please sign in to comment.