[booking] dates by default are changed.

This commit is contained in:
Arsentiy Milchakov 2018-07-04 16:40:26 +03:00 committed by Vlad Mihaylenko
parent 079ad0997a
commit 5909d9e5b9
2 changed files with 4 additions and 4 deletions

View file

@ -72,8 +72,8 @@ AvailabilityParams AvailabilityParams::MakeDefault()
{
AvailabilityParams result;
// Use tomorrow and day after tomorrow by default.
result.m_checkin = Clock::now() + std::chrono::hours(24);
result.m_checkout = Clock::now() + std::chrono::hours(48);
result.m_checkin = Clock::now();
result.m_checkout = Clock::now() + std::chrono::hours(24);
// Use two adults without children.
result.m_rooms = {{2, Room::kNoChildren}};

View file

@ -11,8 +11,8 @@ BlockParams BlockParams::MakeDefault()
{
BlockParams result;
// Use tomorrow and day after tomorrow by default.
result.m_checkin = Clock::now() + std::chrono::hours(24);
result.m_checkout = Clock::now() + std::chrono::hours(48);
result.m_checkin = Clock::now();
result.m_checkout = Clock::now() + std::chrono::hours(24);
// Information about sales by default.
result.m_extras = {"deal_smart", "deal_lastm", "photos"};