I have copied the following code from
to get the current time and date for my app.
I am unsure on how to set the correct time on my xcode but the time is always 12 hours behind.
This happens on both the simulator and my device.
Has anyone else experienced the same bug/situation/problem?
Thanks