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"