about summary refs log tree commit diff
path: root/absl/time/civil_time_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/time/civil_time_test.cc')
-rw-r--r--absl/time/civil_time_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/time/civil_time_test.cc b/absl/time/civil_time_test.cc
index b8d57135aa13..070f0d573823 100644
--- a/absl/time/civil_time_test.cc
+++ b/absl/time/civil_time_test.cc
@@ -1028,7 +1028,7 @@ TEST(CivilTime, LeapYears) {
 TEST(CivilTime, FirstThursdayInMonth) {
   const absl::CivilDay nov1(2014, 11, 1);
   const absl::CivilDay thursday =
-      absl::PrevWeekday(nov1, absl::Weekday::thursday) + 7;
+      absl::NextWeekday(nov1 - 1, absl::Weekday::thursday);
   EXPECT_EQ("2014-11-06", absl::FormatCivilTime(thursday));
 
   // Bonus: Date of Thanksgiving in the United States