NSdate Assuming wrong time zone

一个人想着一个人 提交于 2019-11-27 09:52:32

When you see an [NSDate description] printed in the console, it is always the corresponding time in GMT. If you use the same date formatter to convert the date back to a string, it should be in the specified time zone.

An [NSDate description] is what you see if you type

po date

or

po [date description]

or you use NSLog to send either one of these forms to the console.

if you are looking for India Timezone you should use:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!