mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-08 15:55:46 +00:00
Fix datetime bug with timespan using spaces instead of zeros
This commit is contained in:
@@ -135,5 +135,8 @@ namespace Tesses::Framework::Date
|
||||
{
|
||||
return dt.ToEpoch() - dt2.ToEpoch();
|
||||
}
|
||||
|
||||
inline TimeSpan operator-(const TimeSpan& ts, const TimeSpan& ts2)
|
||||
{
|
||||
return ts.TotalSeconds() - ts2.TotalSeconds();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user