sebastienros/fluid

Issues with TimeSpan

montoner0 opened this issue · 1 comments

I've faced some issues when trying to use TimeSpan class with Fluid. Not sure if they're bugs or it's just me.

  1. Formatting TimeSpan variable with either date or format_date silently fails if the variable's value is more than 23:59:59.
  2. You can't access TimeSpan's properties even with UnsafeMemberAccessStrategy (probably by design since I can't even register it as an accessible type).

A simple repro https://dotnetfiddle.net/rqA9Az

After looking at the code of format_date I see that TimeSpan isn't expected at all and its partial working is just a lucky coincidence...