Skip to content

Commit

Permalink
NMC - 2396 - Date not available issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TSI-shwetawaikar authored and TSI-amrutwaghmare committed Jul 19, 2023
1 parent 38d4f0d commit b122018
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 b122018

Please sign in to comment.