Inserting adjusted time to SQL