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/isSameWeek.js
Normal file
11
frontend/src/Utilities/Date/isSameWeek.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import moment from 'moment';
|
||||
|
||||
function isSameWeek(date) {
|
||||
if (!date) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return moment(date).isSame(moment(), 'week');
|
||||
}
|
||||
|
||||
export default isSameWeek;
|
Reference in New Issue
Block a user