ax5ui / ax5core

Javascript UI Framework -AX5UI CORE
http://ax5.io
MIT License
42 stars 15 forks source link

안녕하세요 ax5.util.date 관련해서 이슈 문의드립니다. #4

Open pethromuse opened 5 years ago

pethromuse commented 5 years ago

ax5core version: 1.4.127 안녕하세요 아래에 이슈가 있는데 최신버젼에도 동일한 현상이 발생하여 올렸습니다. 아래의 코드를 실행하면 년도가 -1이 된 결과가 반환됩니다. var date = new Date();//현재 2019년 1월 10일 ax5.util.date(new Date(date.getFullYear(), date.getMonth(), 1), {return : "yyyy-MM-dd"});

"2018-01-01"

ax5core의 nY = d.getUTCFullYear();에서 2019-01-01의 연도를 2018로 반환합니다. 확인 부탁드립니다.

thomasJang commented 5 years ago
ax5.util.date(new Date(date.getFullYear(), date.getMonth(), 1, 12), {return: 'yyyy-MM-dd'});

으로 하시면 해결 되시겠구요. gmt+9라서 그런거 같은데. 확인을 해보겠습니다.