Given following program:

```
#import <Foundation/Foundation.h>

int main(int argc, char *argv[]) {
    @autoreleasepool {
        NSDateFormatter *f = [[NSDateFormatter alloc] init];
        f.timeStyle = NSDateFormatterNoStyle;
        f.dateStyle = NSDateFormatterMediumStyle;
        f.calendar = [NSCalendar autoupdatingCurrentCalendar];
        f.timeZone = [NSTimeZone timeZoneWithAbbreviation:@"GMT"];
        f.locale   = [NSLocale localeWithLocaleIdentifier:@"ru"];

        NSDate *feb_01_2012 = [NSDate dateWithTimeIntervalSince1970:1328054400];

        NSLog(@"%@", [f stringFromDate:feb_01_2012]);
    }
}

```

When compiled on OS X Yosemite produces following output:

```
2014-12-08 22:31:49.109 Untitled[14149:1398844] 1 февр. 2012 г.

```

However when compiled on OS X Mavericks it yields slightly different output (notice zero padding in day):

```
2014-12-08 22:27:01.890 formatter[54709:507] 01 февр. 2012 г.

```

Any ideas why this might happen? Bug only shows up for `ru` locale :-\

**UPDATE:** Found a way to get same amount of zeroes on both machines. Using `+dateFormatFromTemplate:options:locale:` gives expected result:

```
NSLocale *l = [NSLocale localeWithLocaleIdentifier:@"ru"];
f.locale = l;
f.dateFormat = [NSDateFormatter dateFormatFromTemplate:@"yMMMd"
                                               options:0
                                                locale:l];

```