반응형

 

To get local formatting use getDateInstance(), getDateTimeInstance(), or getTimeInstance(), or use new SimpleDateFormat(String template, Locale locale) with for example Locale.US for ASCII dates.

 

lint 에러로 위메시지가 뜨길래 봣더니 설정을 해줘야하는것같다.

 

SimpleDateFormat("yyyy-MM-dd hh:mm:ss")
SimpleDateFormat("yyyy-MM-dd hh:mm:ss",Locale.getDefault()).format(Date())

Locale.getDefault()를 추가해줘야한다.

반응형

+ Recent posts