[riot-notifications] [RIOT-OS/RIOT] cpu/stm32_common: fix month encoding in RTC driver (#11326)

Vincent Dupont notifications at github.com
Mon Apr 1 16:55:50 CEST 2019

### Contribution description

`struct tm` encodes month in the range 0-11, where stm32 RTC expect 1-12.

### Testing procedure

`rtc_settime 2019-03-28 23:59:59`, on the  next second, `rtc gettime` should return `2019-03-29 00:00:00` where on master it returns `2019-04-01 00:00:00`.

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * cpu/stm32_common: fix month encoding in RTC driver

-- File Changes --

    M cpu/stm32_common/periph/rtc.c (4)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190401/2043f17c/attachment.html>

More information about the notifications mailing list