Revision 877f6f58 src/com/rackspacecloud/android/ContainerObjectDetails.java
b/src/com/rackspacecloud/android/ContainerObjectDetails.java | ||
---|---|---|
220 | 220 |
|
221 | 221 |
//Last Modification date |
222 | 222 |
String strDate = objects.getLastMod(); |
223 |
strDate = strDate.substring(0, strDate.indexOf('T')); |
|
224 |
/* |
|
223 | 225 |
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.ssssss"); |
224 | 226 |
Date dateStr = null; |
225 | 227 |
try { |
... | ... | |
228 | 230 |
e1.printStackTrace(); |
229 | 231 |
} |
230 | 232 |
String formattedDate = formatter.format(dateStr); |
233 |
|
|
231 | 234 |
Date date1 = null; |
232 | 235 |
try { |
233 | 236 |
date1 = formatter.parse(formattedDate); |
... | ... | |
236 | 239 |
} |
237 | 240 |
formatter = new SimpleDateFormat("MMM-dd-yyyy"); |
238 | 241 |
formattedDate = formatter.format(date1); |
242 |
*/ |
|
239 | 243 |
TextView lastmod = (TextView) findViewById(R.id.view_file_modification); |
240 |
lastmod.setText(formattedDate);
|
|
244 |
lastmod.setText(strDate);
|
|
241 | 245 |
|
242 | 246 |
} |
243 | 247 |
|
Also available in: Unified diff