Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6849987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:04:07+00:00 2026-05-27T01:04:07+00:00

My device used to have no problem returning the correct date from NSDate, but

  • 0

My device used to have no problem returning the correct date from NSDate, but now all of a sudden, it isn’t working. I’ve rebooted my device, nothing changes. NSDate returns a date from 1970.

I started noticing this strange behavior when using an app I wrote (only on my device, simulator works fine), where a call to [NSDate date] returned some bizarre date from 1970. I was so puzzled that I tried creating a brand new test project. After creating the project, I simply added the following one line of code in the app delegate’s application:didFinishLaunchingWithOptions: message:

NSLog(@"Current Date: %@", [NSDate date]);

The log shows the following:
1970-01-12 00:04:53.-66 BP_DateTest[112:707] Current Date: 1970-01-12 04:04:53 +0000

My iPhone is currently running iOS 4.3.5 and this is an iPhone 4 device.

When I use the iOS calendar app, everything looks fine, it shows the current date correctly. I went into settings, and checked the international settings, and the calendar is set to Gregorian with United States format.

Please – does anyone have a clue what this is all about? It used to work just fine, so I have no idea what has happened.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:04:08+00:00Added an answer on May 27, 2026 at 1:04 am
    1970-01-12 00:04:53.-66 BP_DateTest[112:707] Current Date: 1970-01-12 04:04:53 +0000
    

    The 1970-01-12 00:04:53 output in the debugger says that your device is set to 1970.
    Check under Settings -> General -> Date & Time -> Set Date & Time

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3.1.2 device and have used 3.1.2 as minimum iOS requirement for my
I have a program that records audio from firewire device (FA-66) with Jack connection.
I have an iPad application that can be used in all four view modes
I have the following problem: I have a Wintec WBT-202 GPS device which has
I have a gui that needs to be updated from a hardware device attached
My team and I have this nasty problem with parsing a string received from
I have used zkemkeeper dll to access the attendance record of finger print device.As
I have a problem, with running some project on iPhone 4 device. It displays
I have been working with a project on an NXP LPC11XX device and FreeRTOS.
I have a logging table used for device heartbeats. I have these network devices

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.