Hi, just spent the morning implementing RTC on my Olimexino-STM32. Thanks everyone for all the work you did to make this pretty darn easy! Special thanks go to bubulindo for putting it all in one easy place up on github.com.
One thing I noticed---this just happening to be the last day of the month---was that tm_mon seems to want to range from 0-11, not 1-12. I verified this by setting the date to the last seconds of each of the 12 months and then watching each midnight transition.
Could someone else please independently verify or refute this?