Skip to content

Commit 94c673f

Browse files
committed
Reference an issue
1 parent 7074d80 commit 94c673f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

core/commonTest/src/InstantTest.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,8 @@ class InstantTest {
129129
expectBetween(instant1, instant4, 61, DateTimeUnit.WEEK)
130130
expectBetween(instant1, instant4, 366 + 31 + 30, DateTimeUnit.DAY)
131131
expectBetween(instant1, instant4, (366 + 31 + 30) * 24 + 1, DateTimeUnit.HOUR)
132-
/* TODO: make this pass on Darwin-based systems.
133-
* Since the Darwin implementation of `offset_at_datetime` can't utilize the preferred offset,
134-
* when there's overlap, the implementation always assumes that the used offset is the one before the
135-
* transition. However, it's not always the case, as seen here. In practice, this is a problem in
136-
* scenarios where the destination of an arithmetic operation on datetimes is an overlap, and the source
137-
* datetime is outside the daylight saving time. */
132+
/* TODO: make this pass on Darwin-based and Windows systems.
133+
See https://github.com/Kotlin/kotlinx-datetime/issues/51 */
138134
// assertEquals(instant1.plus(DateTimeUnit.HOUR), instant4.minus(14, DateTimeUnit.MONTH, zone))
139135

140136
val period = DateTimePeriod(days = 1, hours = 1)

0 commit comments

Comments
 (0)