Skip to content

Conversation

@rchampourlier
Copy link

Reviewed how the DateFormatter is created to follow Apple's guidelines and demo implementation provided in this documentation.

IMO, it makes more sense not to consider user locale since we generally are parsing dates from a backend API, not user entered data. If we don't do it this way, it seems the dates will be converted using local settings, such as non-Gregorian calendar, AM/PM preferences, etc.

Reviewed how the DateFormatter is created to follow Apple's guidelines and demo implementation provided in this documentation: https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/DataFormatting/Articles/dfDateFormatting10_4.html
IMO, it makes more sense not to consider user locale since we generally are parsing dates from a backend API, not user entered data. If we don't do it this way, it seems the dates will be converted using local settings, such as non-Gregorian calendar, AM/PM preferences, etc.
@dchohfi
Copy link
Owner

dchohfi commented Jun 8, 2013

Could you add a property to configuration, so the user can switch between the locales? And if there's no locale use what you've done.

@dchohfi
Copy link
Owner

dchohfi commented Jun 8, 2013

Btw, nice add :)

@rchampourlier
Copy link
Author

Wow, sorry, I completely forgot I hadn't even answered to your comment... I'll have to force myself to get some time to finish this so you can merge it...

Again, please excuse me for the delay and thanks for notifying me again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants