Adds technical date and time formatting
Adds options for technical date and time formatting and includes the option to show seconds. Updates time formatting to use UTC-to-local conversion and ensures consistent colon separators for time values. Adjusts all-day event handling to preserve original start/end times.
This commit is contained in:
parent
c8d78f472d
commit
38737762c5
7 changed files with 370 additions and 26 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { calendarConfig } from '../core/CalendarConfig';
|
||||
import { ColumnBounds } from './ColumnDetectionUtils';
|
||||
import { DateCalculator } from './DateCalculator';
|
||||
import { TimeFormatter } from './TimeFormatter';
|
||||
|
||||
/**
|
||||
* PositionUtils - Static positioning utilities using singleton calendarConfig
|
||||
|
|
@ -209,11 +210,11 @@ export class PositionUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* Convert ISO datetime to time string using DateCalculator
|
||||
* Convert ISO datetime to time string with UTC-to-local conversion
|
||||
*/
|
||||
public static isoToTimeString(isoString: string): string {
|
||||
const date = new Date(isoString);
|
||||
return DateCalculator.formatTime(date);
|
||||
return TimeFormatter.formatTime(date);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue