non-existant NSDate call on iPhone platform #17

Closed
ghost opened this Issue Apr 14, 2010 · 2 comments

Projects

None yet

2 participants

@ghost
ghost commented Apr 14, 2010

this causes compilation to fail with -Werror

was fixed in 3400870 but reverted by e775488 - no reason was given, so I'm not sure whether my own change will meet the criteria that the first fix failed.

iPhone OS not-with-standing, the current way this is done uses dateWithNaturalLanguageString:, which is described on the Apple docs with the following caveat:

This method supports only a limited set of colloquial phrases, primarily in English. It may give unexpected results, and its use is strongly discouraged.

I have changed this to use NSDateFormatter, as recommended by Apple.

miketomasello/MGTwitterEngine@8bae8f7

@intabulas

Wrong format in that commit (at least for me), needs to be EEE MMM dd HH:mm:ss +0000 yyyy

@stevestreza
Collaborator

Fixed in 7568a61.

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