Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2018-07-04 16:40:26 +0300
committerVlad Mihaylenko <vxmihaylenko@gmail.com>2018-07-20 14:51:41 +0300
commit5909d9e5b983dee34d4d6e39acd1f6ee2dc75fef (patch)
treeebe973f71fe95aeab6ce078f54facc2684ebdf12 /partners_api
parent079ad0997ae2a12450f76e966dddfdf0868ede99 (diff)
[booking] dates by default are changed.
Diffstat (limited to 'partners_api')
-rw-r--r--partners_api/booking_availability_params.cpp4
-rw-r--r--partners_api/booking_block_params.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/partners_api/booking_availability_params.cpp b/partners_api/booking_availability_params.cpp
index 506b764a13..d9bf01d4fc 100644
--- a/partners_api/booking_availability_params.cpp
+++ b/partners_api/booking_availability_params.cpp
@@ -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}};
diff --git a/partners_api/booking_block_params.cpp b/partners_api/booking_block_params.cpp
index 22921e5607..561adb0808 100644
--- a/partners_api/booking_block_params.cpp
+++ b/partners_api/booking_block_params.cpp
@@ -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"};