Skip to content

Commit 26a4d2a

Browse files
Merge pull request #13 from uclaradio/WednesdayRefactoring
Fix v2.2 Empty Schedule Bug
2 parents a5d895a + 90e6b9d commit 26a4d2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

UCLA Radio/UCLA Radio/extensions/DateFormatter+ShowDate.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ extension DateFormatter {
1616
case Hour = "ha"
1717
case HourAndMinute = "h:mma"
1818
}
19-
19+
2020
// Expect string of DayAndTime DateFormat ("EEE ha")
2121
func formatShowTimeStringToDateComponents(_ s: String) -> DateComponents? {
2222
dateFormat = DateFormat.DayAndHour.rawValue
23+
locale = Locale(identifier: "en_US")
2324
if let date = self.date(from: s) {
2425
var components = Calendar(identifier: .gregorian).dateComponents([.hour, .weekday], from: date)
2526
components.timeZone = TimeZone(identifier: "America/Los_Angeles")

0 commit comments

Comments
 (0)