From 0e3c3e2ff7e806493275a8d736c22ce507bc712f Mon Sep 17 00:00:00 2001
From: Jeremy A Gray <60826571+jeremyagray@users.noreply.github.com>
Date: Tue, 29 Sep 2020 10:17:26 -0500
Subject: [PATCH] fix(learn): avoid conflict with spring forward EST to EDT
(#39681)
March 8, 2009 is the weekend of spring forward to EDT in the US. This change moves the example date and test back one day to add twelve hours to a time on March 6, 2009, resulting in a time on March 7, 2009.
---
.../rosetta-code/date-manipulation.english.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/date-manipulation.english.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/date-manipulation.english.md
index e8dc68222d..b358994e4b 100644
--- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/date-manipulation.english.md
+++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/date-manipulation.english.md
@@ -8,8 +8,8 @@ forumTopicId: 302244
## Description
Given a date string in EST, output the given date as a string with 12 hours added to the time. Time zone should be preserved.
-Example input: "March 7 2009 7:30pm EST"
-Example output: "March 8 2009 7:30am EST"
+Example input: "March 6 2009 7:30pm EST"
+Example output: "March 7 2009 7:30am EST"
## Instructions
@@ -28,8 +28,8 @@ tests:
testString: assert(typeof add12Hours('January 17 2017 11:43am EST') === 'string');
- text: add12Hours("January 17 2017 11:43am EST")
should return "January 17 2017 11:43pm EST"
testString: assert(add12Hours('January 17 2017 11:43am EST') === 'January 17 2017 11:43pm EST');
- - text: Should handle day change. add12Hours("March 7 2009 7:30pm EST")
should return "March 8 2009 7:30am EST"
- testString: assert(add12Hours('March 7 2009 7:30pm EST') === 'March 8 2009 7:30am EST');
+ - text: Should handle day change. add12Hours("March 6 2009 7:30pm EST")
should return "March 7 2009 7:30am EST"
+ testString: assert(add12Hours('March 6 2009 7:30pm EST') === 'March 7 2009 7:30am EST');
- text: Should handle month change in a leap years. add12Hours("February 29 2004 9:15pm EST")
should return "March 1 2004 9:15am EST"
testString: assert(add12Hours('February 29 2004 9:15pm EST') === 'March 1 2004 9:15am EST');
- text: Should handle month change in a common years. add12Hours("February 28 1999 3:15pm EST")
should return "March 1 1999 3:15am EST"