harry пре 3 година
родитељ
комит
fd2292a7f0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      BFCommonKit/Classes/BFCategorys/Date+Ext.swift

+ 1 - 1
BFCommonKit/Classes/BFCategorys/Date+Ext.swift

@@ -31,7 +31,7 @@ public extension Double {
     /// - Parameter value: <#value description#>
     /// - Returns: <#description#>
     func formatDurationToHMS() -> String {
-        var theTime = lround(self)
+        var theTime = Int(floor(self))
         var theTime1 = 0 // 分
         var theTime2 = 0 // 小时
         if theTime < 60 {