Align query time with pw boundary