Skip to content

Commit

Permalink
use SimpleDateFormatter instead of deprecated NSTimestampFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Nov 14, 2012
1 parent 21a7322 commit baa7229
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Enumeration;

Expand All @@ -24,7 +25,6 @@
import com.webobjects.foundation.NSMutableDictionary;
import com.webobjects.foundation.NSSelector;
import com.webobjects.foundation.NSTimestamp;
import com.webobjects.foundation.NSTimestampFormatter;
import com.webobjects.foundation._NSStringUtilities;

/**
Expand Down Expand Up @@ -72,12 +72,12 @@ public class PostgresqlExpression extends JDBCExpression {
/**
* formatter to use when handling date columns
*/
private static final NSTimestampFormatter DATE_FORMATTER = new NSTimestampFormatter("%Y-%m-%d");
private static final SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat("yyyy-MM-dd");

/**
* formatter to use when handling timestamps
*/
private static final NSTimestampFormatter TIMESTAMP_FORMATTER = new NSTimestampFormatter("%Y-%m-%d %H:%M:%S.%F");
private static final SimpleDateFormat TIMESTAMP_FORMATTER = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");

/**
* Method to get the string value from a BigDecimals from.
Expand Down

0 comments on commit baa7229

Please sign in to comment.