gugutz / vanilla-commons

Lightweight common vanilla utilities for the modern web development
MIT License
37 stars 4 forks source link

unexpected day variation in parseDate #17

Closed RafaelC457ro closed 7 years ago

RafaelC457ro commented 7 years ago

Bug: ParseDate produce a different day value.

Expected Behavior

import {parseDate} from 'vanilla-commons'

parseDate('{DD}{MM}{YY}','110412')
// 2012-04-11T03:00:00.000Z
// brazil timezone midnight

Current Behavior

import {parseDate} from 'vanilla-commons'

parseDate('{DD}{MM}{YY}','110412')
// 2012-04-12T00:00:00.000Z
//          ^ some different value here

Context

I trying to parse a date from a file that give only this date format, and i can't test this properly, because always produce a different value.

Your Environment

software version(s)
vanilla-commons 1.1.0
node v7.8.0
npm 5.3.0
Operating System Ubuntu 16.04.2 LTS
thiamsantos commented 7 years ago

The issue was solved? I was not able to reproduce it.