This is the raw data provided for the task:
new Date(article.creation_date) logic, I identified the timezone glitch by comparing the Input HTML data with the Task Description example. In the provided JSON data, André Baniwa's creation date is September 13, 2021. However, the example output in the task instructions(Step 5B) shows it as September 12, 2021.
YYYY-MM-DD as UTC.
T00:00:00 to the date string, ensuring the Date object correctly represents the local calendar day across all timezones.
Below is the logic I wrote to process the data, to handle timezones, and format dates:
This is the final human readable output generated by my script:
✓ Dates are verified for timezone accuracy using local ISO formatting.
The skeleton of this page used to organize the information:
Ques: Why this prototype is here?
Ans: While Task 1 focuses on basic data manipulation, the following prototype demonstrates how I apply those same JavaScript principles. Specifically, String Normalization and Data Validation to solve a real world problem from the main project’s roadmap, i.e:
Wishlist Proposal #3 (Duplicate Reference Detection)
Goal: Prevent duplicate references in the Visual Editor via normalization.