# How can I get Daylight Savings / UTC Timezone Offset of player's computer?

**URL:** <https://forums.unrealengine.com/t/how-can-i-get-daylight-savings-utc-timezone-offset-of-players-computer/765722>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [February 7, 2023, 4:38pm UTC](https://forums.unrealengine.com/t/how-can-i-get-daylight-savings-utc-timezone-offset-of-players-computer/765722 "2023-02-07T16:38:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rokenrock](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rokenrock/32/1040844_2.png) [@rokenrock](https://forums.unrealengine.com/u/rokenrock)\
**Post date:** [February 8, 2023, 12:36pm UTC](https://forums.unrealengine.com/t/how-can-i-get-daylight-savings-utc-timezone-offset-of-players-computer/765722/4 "2023-02-08T12:36:03Z")

</div>

My bad, I often don’t read tags, and I completely missed `FDateTime`.

* * *
  

Here is a post:

> [@Daylight Savings / UTC Timezone Offset](https://forums.unrealengine.com/t/daylight-savings-utc-timezone-offset/608729/2):
>
> Hi , @jo.codegirl, you can get the computer’s datetime with FDateTime:Now(). Also, if you want to have the difference between your pc’s time and the utcDatetime you can do this int utcnow = FDateTime::UtcNow().GetHour(); int now = FDateTime::Now().GetHour(); int diff = now - utcnow; and get the difference in hours. Remember use #include “Misc/DateTime.h”

---

_[View the full topic](https://forums.unrealengine.com/t/how-can-i-get-daylight-savings-utc-timezone-offset-of-players-computer/765722)._
