Skip to content

Commit

Permalink
use 1 instead of 一 for time
Browse files Browse the repository at this point in the history
  • Loading branch information
ashchan committed Mar 12, 2012
1 parent 107897e commit 78e327c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RubyChinaReader/NSDate+TimeAgo.m
Expand Up @@ -13,11 +13,11 @@ -(NSString *)timeAgo {
} else if(deltaSeconds < 60) {
return [NSString stringWithFormat:@"%d秒前", (int)deltaSeconds];
} else if(deltaSeconds < 120) {
return @"一分钟前";
return @"1分钟前";
} else if (deltaMinutes < 60) {
return [NSString stringWithFormat:@"%d分钟前", (int)deltaMinutes];
} else if (deltaMinutes < 120) {
return @"一小时前";
return @"1小时前";
} else if (deltaMinutes < (24 * 60)) {
return [NSString stringWithFormat:@"%d小时前", (int)floor(deltaMinutes/60)];
} else if (deltaMinutes < (24 * 60 * 2)) {
Expand Down

0 comments on commit 78e327c

Please sign in to comment.