Skip to content

Commit

Permalink
fixed minutes not being utilized in time info calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
compufox committed Feb 8, 2023
1 parent 44e8ece commit ed0b9ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public class ImageMetadataGenerator {
let timeItem = TimeItem()
timeItem.imageIndex = self.getImageIndex(fileName: item.fileName)
let hour = Calendar.current.component(.hour, from: time)
timeItem.time = Double(hour) / 24.0
let min = Calendar.current.component(.minute, from: time)
timeItem.time = (Double(hour) / 24.0) + (Double(min) / 60.0 / 24.0)

if sequenceInfo.timeItems == nil {
sequenceInfo.timeItems = []
Expand Down

0 comments on commit ed0b9ea

Please sign in to comment.