Fixed calculation of daily offset in ConfigDialog.