# Time Stamp: How to convert ZuluTime to Pacific Tim

**URL:** <https://forums.kodeco.com/t/time-stamp-how-to-convert-zulutime-to-pacific-tim/36706>\
**Category:** Swift\
**Created:** [November 20, 2017, 12:42am UTC](https://forums.kodeco.com/t/time-stamp-how-to-convert-zulutime-to-pacific-tim/36706 "2017-11-20T00:42:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hcri50](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@hcri50](https://forums.kodeco.com/u/hcri50)\
**Post date:** [November 20, 2017, 12:42am UTC](https://forums.kodeco.com/t/time-stamp-how-to-convert-zulutime-to-pacific-tim/36706/1 "2017-11-20T00:42:23Z")

</div>

I seem not to be able to grasp the time ahead and subtracting the time to Pacific.  
What I have is a JSON  
Can iOS convert the Time Stamp that was created by the server?

 ![Zulu](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/3/f/3f011ee619c107ccdaaa9a0dffdc55d180dc515c.png)

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [November 20, 2017, 3:45pm UTC](https://forums.kodeco.com/t/time-stamp-how-to-convert-zulutime-to-pacific-tim/36706/2 "2017-11-20T15:45:40Z")

</div>

@hcri50 Thanks very much for your question! In order to convert an object to a particular timezone, I found a solution that was identical to your problem. The solution may be found [here](https://stackoverflow.com/questions/13917938/change-nsdate-from-one-time-zone-to-another).

I hope this helps!

All the best!

---

<div class="post-metadata">

**Author:** ![hcri50](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@hcri50](https://forums.kodeco.com/u/hcri50)\
**Post date:** [November 20, 2017, 4:14pm UTC](https://forums.kodeco.com/t/time-stamp-how-to-convert-zulutime-to-pacific-tim/36706/3 "2017-11-20T16:14:43Z")

</div>

thank you for your reply, sadly I can not make GMT work for Zulu time.  
If you noticed that the time string for display is NSString \*str = @“2012-12-17 04:36:25”;  
Mine is Different for it ends in :24Z. which stands for Zulu not GMT  
;-(  
thank you again sir.

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [November 20, 2017, 4:16pm UTC](https://forums.kodeco.com/t/time-stamp-how-to-convert-zulutime-to-pacific-tim/36706/4 "2017-11-20T16:16:21Z")

</div>

Please go to the link and see if you can find a solution there, or perhaps post your question on to [StackOverflow](http://www.stackoverflow.com), and hopefully you’ll get a solution to your problem soon!

All the best!

---

<div class="post-metadata">

**Author:** ![hcri50](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@hcri50](https://forums.kodeco.com/u/hcri50)\
**Post date:** [November 20, 2017, 4:17pm UTC](https://forums.kodeco.com/t/time-stamp-how-to-convert-zulutime-to-pacific-tim/36706/5 "2017-11-20T16:17:12Z")

</div>

I think I know what to do, I will get back to let you know

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [May 5, 2018, 4:42pm UTC](https://forums.kodeco.com/t/time-stamp-how-to-convert-zulutime-to-pacific-tim/36706/6 "2018-05-05T16:42:28Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
