vikunja/frontend/src/helpers
Copilot 7cd3f69096
fix: prevent date picker from selecting past times at hour breakpoints (#1814)
The function previously used <= for hour comparisons, which caused it to
return a breakpoint hour even if the current time had passed it. For example,
at 15:54, it would return 15 (3:00 PM), which is in the past.

Now the function checks both hours and minutes:
- If current time is before a breakpoint hour, return that hour
- If current time is exactly at a breakpoint hour with 0 minutes, return that hour
- If current time is past a breakpoint (hour with minutes > 0), return the next breakpoint

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kolaente <13721712+kolaente@users.noreply.github.com>
2025-11-13 10:46:24 +01:00
..
color feat(gantt): rebuild the gantt chart (#1001) 2025-08-12 16:33:50 +02:00
time fix: prevent date picker from selecting past times at hour breakpoints (#1814) 2025-11-13 10:46:24 +01:00
attachments.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
auth.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
calculateItemPosition.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
calculateTaskPosition.test.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
case.ts feat: switch to change-case lib 2024-06-18 06:30:39 +00:00
checkAndSetApiUrl.ts feat(dev): use proxy server in dev mode (#3069) 2025-03-09 13:40:57 +00:00
checklistFromText.test.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
checklistFromText.ts feat: consistent sorting 2025-06-02 22:27:03 +02:00
closeWhenClickedOutside.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
createAsyncComponent.ts chore: fix indentation 2025-06-19 10:53:35 +02:00
downloadBlob.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
editorContentEmpty.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
fetcher.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
filters.test.ts fix(filters): support project filter in parentheses (#1647) 2025-10-13 11:10:22 +02:00
filters.ts fix(filters): support project filter in parentheses (#1647) 2025-10-13 11:10:22 +02:00
getBlobFromBlurHash.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
getFullBaseUrl.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
getHumanSize.ts chore: fix indentation 2025-06-19 10:53:35 +02:00
getInheritedBackgroundColor.ts chore: fix indentation 2025-06-19 10:53:35 +02:00
getProjectTitle.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
hourToDaytime.test.ts chore: add missing eof newlines (#969) 2025-06-17 09:11:32 +00:00
hourToDaytime.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
inputPrompt.ts fix: prevent keyboard events during IME composition (#1535) 2025-10-06 18:17:52 +02:00
isAppleDevice.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
isEmail.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
isValidHttpUrl.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
parseDateOrNull.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
parseSubtasksViaIndention.test.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
parseSubtasksViaIndention.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
playPop.ts feat: simplify playPopSound setting check 2024-07-05 14:24:53 +02:00
projectView.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
randomId.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
redirectToProvider.ts feat: assign users to teams via OIDC claims (#1393) 2024-03-02 08:47:10 +00:00
replaceAll.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
saveCollapsedBucketState.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
saveLastVisited.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
scrollIntoView.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
setTitle.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
useFlatpickrLanguage.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
utils.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00
validatePasswort.ts fix: add newline at end of line (#827) 2025-05-24 13:57:47 +02:00