Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
LocaleCode bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nurdabolatov committed May 20, 2016
1 parent 5048248 commit 65076fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NSDate+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ extension NSDate {
}

// Russian (ru) and Ukrainian (uk)
if localeCode == "ru" || localeCode == "uk" {
if localeCode.hasPrefix("ru") || localeCode.hasPrefix("uk") {
let XY = Int(floor(value)) % 100
let Y = Int(floor(value)) % 10

Expand Down

0 comments on commit 65076fc

Please sign in to comment.