Durations created by `createTimespan` can't be casted to strings

Description

None

Activity

Show:

Brad WoodFebruary 13, 2025 at 9:10 PM

Your solution also doesn’t have the same level of accuracy of CF.

Brad WoodFebruary 13, 2025 at 9:07 PM
Edited

Hmm, your test seems a little vague. It just checks that it outputs something. My test was this:

which actually verified the output

Brad WoodFebruary 13, 2025 at 9:05 PM

NO, you beat me, lol. It wasn’t assigned yet so I started it

Brad WoodFebruary 13, 2025 at 8:57 PM

It’s worth noting that CF casts a timespan to a string as a decimal representation of the number of days. I assume this is what you’re expecting to happen here?

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created February 13, 2025 at 8:49 PM
Updated February 13, 2025 at 9:10 PM
Resolved February 13, 2025 at 9:05 PM