Use NSDate instead of c func time to get timestamp

Otherwise sometimes the pod does not compile, as discussed in issue #133