Hi, I’m having a strange Time type conversion problem; I have a time(7)
column in my MS SQL Db, mapped in my POCO as:
public TimeSpan? AN07_ORAAMAPRE { get; set; }
I configured Servicestack this way:
JsConfig.DateHandler = DateHandler.ISO8601;
var dates = OrmLiteConfig.DialectProvider.GetDateTimeConverter();
dates.DateStyle = DateTimeKind.Utc;
SqlServerDialect.Provider.RegisterConverter<TimeSpan>(new SqlServerTimeConverter
{
Precision = 7
})
Now… when I call my service that handle this time
type I’ve get back: PT17H8M
instead of 17:08:00
; what kind of format is that? Is PT
stands for Pacific Time? (I’m not in a Pacific Time zone…).
How can I format my time
types as simple hh:mm:ss
?