adaltas / adaltas/node-csv

Date parse bug

Open
#413 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
4.3k
Forks
299
Avg merge
16h 19m
Merged PRs (30d)
1

Description

when the parse function gets a date string it parse it incorrectly.

for example if i have the string "2023-12-11" - it will be converted as 11/12/2023 02:00:00

the issue is instead of a 00:00:00 time i get 02:00:00, and i don't understand why.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the parse function in the node-csv repository and reproduce the reported conversion of "2023-12-11". Trace where the two-hour offset is introduced, then verify that the same input produces the expected 00:00:00 time without breaking other date parsing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.