Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -310,7 +310,7 @@ public class MainActivity extends AppCompatActivity { | ... | @@ -310,7 +310,7 @@ public class MainActivity extends AppCompatActivity { |
310 | rrule = cure.getString(8); | 310 | rrule = cure.getString(8); |
311 | rdate = cure.getString(9); | 311 | rdate = cure.getString(9); |
312 | 312 | ||
313 | - DateFormat timeFormat = new SimpleDateFormat("yyyy MM dd HH:mm:ss"); | 313 | + DateFormat timeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
314 | Date start = new Date(dtstart); | 314 | Date start = new Date(dtstart); |
315 | Date end = new Date(dtend); | 315 | Date end = new Date(dtend); |
316 | 316 | ||
... | @@ -560,7 +560,7 @@ public class MainActivity extends AppCompatActivity { | ... | @@ -560,7 +560,7 @@ public class MainActivity extends AppCompatActivity { |
560 | String duration = cursor.getString(cursor.getColumnIndex(CallLog.Calls.DURATION)); | 560 | String duration = cursor.getString(cursor.getColumnIndex(CallLog.Calls.DURATION)); |
561 | //날짜 | 561 | //날짜 |
562 | long date_long = cursor.getLong(cursor.getColumnIndex(CallLog.Calls.DATE)); | 562 | long date_long = cursor.getLong(cursor.getColumnIndex(CallLog.Calls.DATE)); |
563 | - DateFormat timeFormat = new SimpleDateFormat("yyyy MM dd HH:mm:ss"); | 563 | + DateFormat timeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
564 | Date date = new Date(date_long); | 564 | Date date = new Date(date_long); |
565 | 565 | ||
566 | //db에 추가 | 566 | //db에 추가 |
... | @@ -625,7 +625,7 @@ public class MainActivity extends AppCompatActivity { | ... | @@ -625,7 +625,7 @@ public class MainActivity extends AppCompatActivity { |
625 | String creator = cursor.getString(5); | 625 | String creator = cursor.getString(5); |
626 | //시간 ms | 626 | //시간 ms |
627 | Long date_long = cursor.getLong(6); | 627 | Long date_long = cursor.getLong(6); |
628 | - DateFormat timeFormat = new SimpleDateFormat("yyyy MM dd HH:mm:ss"); | 628 | + DateFormat timeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
629 | String date = timeFormat.format(date_long); | 629 | String date = timeFormat.format(date_long); |
630 | //내용 | 630 | //내용 |
631 | String body = cursor.getString(7); | 631 | String body = cursor.getString(7); | ... | ... |
-
Please register or login to post a comment