Hello again. I took this code from Ktor documentat...
# ktor
v
Hello again. I took this code from Ktor documentation and it no longer works with new migration to 0.9.4. Date and attributes are not good with the new migration. Do you know how to solve this please ?
📝 1
2
I had to remplace Date by GMTDate
But for data.attributes I don’t know
d
for that specific code
since 0.9.3 there is a Mock Client engine
v
Thanks !
👍 1
d
And untested, but:
Copy code
override val attributes: Attributes = Attributes().apply { data.attributes(this) }
// -->
//override val attributes: Attributes = data.attributes
https://github.com/ktorio/ktorio.github.io/commit/f6b7c1af27517d14c3910710ee8cf4deabc39b36
👍 1