Skip to content

Commit

Permalink
use runAsync func
Browse files Browse the repository at this point in the history
  • Loading branch information
volodg committed Jul 4, 2015
1 parent ceddbcc commit 256f452
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Expand Up @@ -127,7 +127,7 @@ extension SocialFacebookUser {

if let date = v.value.0.birthday {

birthday = fbUserBithdayDateFormat.dateFromString(date)
birthday = createFbUserBithdayDateFormat().dateFromString(date)
} else {

birthday = nil
Expand Down
14 changes: 6 additions & 8 deletions iAsync.social/Facebook/Model/JSocialFacebookUser.swift
Expand Up @@ -11,21 +11,19 @@ import Foundation
//Image urls docs
// http://developers.facebook.com/docs/reference/api/using-pictures/

public let fbUserBithdayDateFormat = createUserBithdayDateFormat()

private func createUserBithdayDateFormat() -> NSDateFormatter {

public func createFbUserBithdayDateFormat() -> NSDateFormatter
{
let result = NSDateFormatter()

result.dateFormat = "MM/dd/yyyy"
result.locale = NSLocale(localeIdentifier: "en_US")
result.timeZone = NSTimeZone(name: "GMT")
result.locale = NSLocale(localeIdentifier: "en_US")
result.timeZone = NSTimeZone(name: "GMT")

return result
}

public struct SocialFacebookUser {
public struct SocialFacebookUser
{
public let id : String
public let email : String?
public let name : String?
Expand Down

0 comments on commit 256f452

Please sign in to comment.