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 6599347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:28:46+00:00 2026-05-25T18:28:46+00:00

I have a row in my plist using a Date type. I manually set

  • 0

I have a row in my plist using a Date type. I manually set to the date to Jan 1, 1970 12:00:00 AM. I’m using the plist as defaults for NSUserDefaults. When I read the value using NSUserDefaults, it returns 1970-01-01 08:00:00 +0000. As a result, this check always fails:

if ([defaultDateFromPlist isEqualToDate:[NSDate dateWithTimeIntervalSince1970:0]])
   // this never evaluates to true since the time is returning 08:00:00

What date do I type in my plist to make sure the default is equal to [NSDate dateWithTimeIntervalSince1970:0]?

  • 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-25T18:28:47+00:00Added an answer on May 25, 2026 at 6:28 pm

    In the Xcode project navigator you can right-click on the plist file and select Open as Source Code. This will allow you to edit the file in its raw XML form.

    From there you can set the time more precisely using “Z”. So you can have something like this:

    <key>startDate</key>
    <date>1970-01-01T00:00:00Z</date>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have records: Row Date, LocationID, Account 1 Jan 1, 2008 1 1000
I'm having a table and i have a row which is initially set to
i have to modify a BOOL value in my plist file stored with the
Ok, basically what is needed is a way to have row numbers while using
I have a UITableView which I have assigned sections. When using didSelectRowAtIndex with indexPath.row
i have row style set to NODE in my view. I need to access
I have the following format in my plist: I'm using this code which works
I have a plist with root of type dictionary containing keys of type array,
MS SQL Server doesn't have row level triggers, correct? If I needed to insert
I have a row of data that I need to modify in a database,

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.