Changeset 25664 in osm for applications


Ignore:
Timestamp:
2011-03-22T14:37:37+01:00 (13 years ago)
Author:
zverik
Message:

fix datetime format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/OsbAction.java

    r22684 r25664  
    3131
    3232import java.awt.event.ActionEvent;
    33 import java.text.DateFormat;
     33import java.text.SimpleDateFormat;
    3434import java.util.ArrayList;
    3535import java.util.Date;
     
    108108        if(Main.pref.getBoolean(ConfigKeys.OSB_INCLUDE_DATE)) {
    109109            // get the date
    110             DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.LONG, Locale.getDefault());
    111             String date = df.format(new Date());
     110            String date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z", Locale.ENGLISH).format(new Date());
    112111
    113112            // concatenate nickname and date
Note: See TracChangeset for help on using the changeset viewer.