Here is attached diff file showing how to add the above feature. It's tested on v2.6.3.
Please let me know if you have any questions.
Giovanni Di Sirio
Sorry for the late answer. The branch 2.6.x is frozen for new features, the new branch 3.0 (the new trunk) includes a renewed RTC driver that should not need this patch, the time structures are quite different.