# Daylight Savings Time and AM/PM patch

**URL:** https://forum.xod.io/t/daylight-savings-time-and-am-pm-patch/4623
**Category:** Look What I’ve Done
**Created:** [November 20, 2020, 2:54pm UTC](https://forum.xod.io/t/daylight-savings-time-and-am-pm-patch/4623 "2020-11-20T14:54:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![krugdu](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@krugdu](https://forum.xod.io/u/krugdu)
#### Post date: [November 20, 2020, 2:54pm UTC](https://forum.xod.io/t/daylight-savings-time-and-am-pm-patch/4623/1 "2020-11-20T14:54:34Z")

</div>

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/4/40338c9773283a3a4e571a04db6caff1876b416e.png)

I’ve shared a patch that converts the 0-23 hour time from an RTC to a 12 hour time with “am” and “pm”. It also converts the time to DST when push button is toggled on. It’s nothing spectacular, fairly basic but I thought I’d share it anyways. Perhaps someone could add the logic to automatically trigger the daylight savings time.

---

<div class="post-metadata">

### Author: ![dawreski](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dawreski](https://forum.xod.io/u/dawreski)
#### Post date: [November 23, 2020, 7:58pm UTC](https://forum.xod.io/t/daylight-savings-time-and-am-pm-patch/4623/2 "2020-11-23T19:58:28Z")

</div>

Hello krugdu ,  
Thank you so much for sharing this with us. It is very nice of you to share your hard work. Thanks again my friend.  
Dave

---

<div class="post-metadata">

### Author: ![dawreski](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dawreski](https://forum.xod.io/u/dawreski)
#### Post date: [November 23, 2020, 8:07pm UTC](https://forum.xod.io/t/daylight-savings-time-and-am-pm-patch/4623/3 "2020-11-23T20:07:40Z")

</div>

Good Day ,  
Do you know how to get this project into my XOD program. I can’t seem to load it any way I tried to.  
Please help a new user.  
Dave

---

<div class="post-metadata">

### Author: ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)
#### Post date: [November 23, 2020, 8:36pm UTC](https://forum.xod.io/t/daylight-savings-time-and-am-pm-patch/4623/4 "2020-11-23T20:36:30Z")

</div>

Hi @krugdu,

The easiest way to share your project is to publish it as a library - see [https://xod.io/docs/guide/creating-libraries/](https://xod.io/docs/guide/creating-libraries/)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)
#### Post date: [May 22, 2021, 8:36pm UTC](https://forum.xod.io/t/daylight-savings-time-and-am-pm-patch/4623/5 "2021-05-22T20:36:33Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
