[PATCH] smsd sqlite insert month number correctly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] smsd sqlite insert month number correctly

Pedro Aguilar
Hi,
 
The following simple patch fixes the month number in SQLite's inbox table.
Since localtime() returns tm_mon in the range 0 -11, by adding one it inserts the right month.
 
Regards,
 
Pedro Aguilar
http://paguilar.org

_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users

insert_right_month_number.patch (766 bytes) Download Attachment