Skip to content

Commit

Permalink
Merge pull request #101 from nextmcloud/NMC_2396_Date_not_available_f…
Browse files Browse the repository at this point in the history
…or_images

NMC - 2396 - Date not available issue fix
  • Loading branch information
TSI-amrutwaghmare authored Jul 14, 2023
2 parents 5435631 + d187692 commit 3c8a292
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions iOSClient/Viewer/NCViewerMedia/NCViewerMediaDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,8 @@ class NCViewerMediaDetailView: UIView {
sizeValue.textColor = textColor

// Date
if let date = date {
let formatter = DateFormatter()
formatter.dateStyle = .full
formatter.timeStyle = .medium
let dateString = formatter.string(from: date as Date)

dateLabel.text = NSLocalizedString("_date_", comment: "")
dateValue.text = dateString
} else {
dateLabel.text = NSLocalizedString("_date_", comment: "")
dateValue.text = NSLocalizedString("_not_available_", comment: "")
}
dateLabel.text = NSLocalizedString("_date_", comment: "")
dateValue.text = CCUtility.dateDiff(metadata.date as Date)
dateValue.textColor = textColor

// Dimension
Expand Down

0 comments on commit 3c8a292

Please sign in to comment.