locales in date: keep default
This commit is contained in:
parent
b6970fb5e7
commit
0397c98eb7
1 changed files with 2 additions and 3 deletions
|
@ -249,9 +249,8 @@ public class TempBasalsFragment extends Fragment implements PluginBase, TempBasa
|
|||
|
||||
@Override
|
||||
public void onBindViewHolder(TempBasalsViewHolder holder, int position) {
|
||||
// TODO: implement locales
|
||||
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT, new Locale("cs", "CZ"));
|
||||
DateFormat enddf = DateFormat.getTimeInstance(DateFormat.SHORT, new Locale("cs", "CZ"));
|
||||
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT);
|
||||
DateFormat enddf = DateFormat.getTimeInstance(DateFormat.SHORT);
|
||||
TempBasal tempBasal = tempBasals.get(position);
|
||||
if (tempBasal.timeEnd != null) {
|
||||
holder.date.setText(df.format(tempBasal.timeStart) + " - " + enddf.format(tempBasals.get(position).timeEnd));
|
||||
|
|
Loading…
Reference in a new issue