Convert week_start value to integer

Fixes #2