mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Project Aphrodite
This commit is contained in:
11
frontend/src/Utilities/Date/isTomorrow.js
Normal file
11
frontend/src/Utilities/Date/isTomorrow.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import moment from 'moment';
|
||||
|
||||
function isTomorrow(date) {
|
||||
if (!date) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return moment(date).isSame(moment().add(1, 'day'), 'day');
|
||||
}
|
||||
|
||||
export default isTomorrow;
|
Reference in New Issue
Block a user