# One hour difference in modification date & time bewteen mtime and displayed

**URL:** <https://discourse.julialang.org/t/one-hour-difference-in-modification-date-time-bewteen-mtime-and-displayed/25989>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 3, 2019, 4:02pm UTC](https://discourse.julialang.org/t/one-hour-difference-in-modification-date-time-bewteen-mtime-and-displayed/25989 "2019-07-03T16:02:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [July 3, 2019, 4:02pm UTC](https://discourse.julialang.org/t/one-hour-difference-in-modification-date-time-bewteen-mtime-and-displayed/25989/1 "2019-07-03T16:02:36Z")

</div>

This is a bit off-topic, might have to do with MacOS more than Julia, but it does involve Julia’s `mtime` function…

On a mac, the displayed date & time in the “modification time” column (in file-finder or whatever it’s called – not a mac user) is one hour off from what I get if I run:

```julia
using Dates
unix2datetime(ctime(file))

```

How is that possible?!

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [July 3, 2019, 4:44pm UTC](https://discourse.julialang.org/t/one-hour-difference-in-modification-date-time-bewteen-mtime-and-displayed/25989/2 "2019-07-03T16:44:53Z")

</div>

Is it a time zone issue? Unix time is always supposed to be in GMT.

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [July 3, 2019, 5:04pm UTC](https://discourse.julialang.org/t/one-hour-difference-in-modification-date-time-bewteen-mtime-and-displayed/25989/3 "2019-07-03T17:04:21Z")

</div>

ooo, that might be it. So the time in that MacOS-GUI file-finder thing is something else. That could be the case…
