toString(.shortMonth) doesn't work properly
emirhb opened this issue · comments
In DateHelper.swift
func toString(style:DateStyleType = .short) -> String
has a issue.
case .month:
let monthSymbols = Date.cachedFormatter().monthSymbols!
return monthSymbols[component(.**weekday**)!-1] as String **_// should be month_**
case .shortMonth:
let shortMonthSymbols = Date.cachedFormatter().shortMonthSymbols!
return shortMonthSymbols[component(.**weekday**)!-1] as String **_// should be month_**
case .veryShortMonth:
let veryShortMonthSymbols = Date.cachedFormatter().veryShortMonthSymbols!
return veryShortMonthSymbols[component(.**weekday**)!-1] as String **_// should be month_**
Thanks for catching this bug. It's been fixed here: edb0c6e