mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 19:22:14 +01:00
add break time entries and simplified time tracker ui
This commit is contained in:
@@ -26,7 +26,7 @@ interface Interval {
|
||||
end: Dayjs;
|
||||
}
|
||||
|
||||
function localDayBounds(date: string, tz: string): { dayStart: Dayjs; dayEnd: Dayjs } {
|
||||
export function localDayBounds(date: string, tz: string): { dayStart: Dayjs; dayEnd: Dayjs } {
|
||||
const dayjs = getDayJsInstance();
|
||||
// `.add(1, 'day')` on a Dayjs instance advances by a fixed 24h, which is
|
||||
// wrong on DST-transition days (the local day is 23h or 25h long). Derive
|
||||
|
||||
Reference in New Issue
Block a user