LP#1474507: fix interval_to_seconds for weeks and seconds