feat: show nice dates in events
This commit is contained in:
+11
-2
@@ -28,7 +28,16 @@ class EventDateTimeFormatterTest {
|
||||
start = "2024-11-10T14:00:00",
|
||||
end = "2024-11-10T16:15:00",
|
||||
)
|
||||
assertEquals("10.11.2024 14:00 - 16:15", formatted)
|
||||
assertEquals("10 novembre 2024 de 14h à 16h15", formatted)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun formatsSameDayEventWithSpaceSeparator() {
|
||||
val formatted = formatEventDateTime(
|
||||
start = "2026-08-09 10:00:00",
|
||||
end = "2026-08-09 12:00:00",
|
||||
)
|
||||
assertEquals("9 août 2026 de 10h à 12h", formatted)
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -37,7 +46,7 @@ class EventDateTimeFormatterTest {
|
||||
start = "2024-11-10T20:00:00",
|
||||
end = "2024-11-11T01:30:00",
|
||||
)
|
||||
assertEquals("10.11.2024 20:00 - 01:30 (11.11.2024)", formatted)
|
||||
assertEquals("10 novembre 2024 de 20h à 1h30 (11 novembre 2024)", formatted)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user