Skip to content

Commit

Permalink
Better "fix"
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronan Dunklau committed Jan 29, 2012
1 parent 0edc5a0 commit 7105622
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/multicorn.c
Expand Up @@ -94,8 +94,6 @@ HeapTuple pysequence_to_postgres_tuple(TupleDesc desc, PyObject * pyseq);
HeapTuple pydict_to_postgres_tuple(TupleDesc desc, PyObject * pydict);
ssize_t pyobject_to_cstring(PyObject * pyobject, Form_pg_attribute attribute, char **buffer);

const char *DATE_FORMAT_STRING = "%Y-%m-%d %H:%M:%S";

PyObject *TABLES_DICT;

Datum
Expand Down Expand Up @@ -557,7 +555,7 @@ pyobject_to_cstring(PyObject * pyobject, Form_pg_attribute attribute, char **buf
{
PyObject *formatted_date;

formatted_date = PyObject_CallMethod(pyobject, "strftime", "(s)", DATE_FORMAT_STRING);
formatted_date = PyObject_CallMethod(pyobject, "isoformat", "()");
multicorn_error_check();
PyString_AsStringAndSize(formatted_date, buffer, &strlength);
multicorn_error_check();
Expand Down

0 comments on commit 7105622

Please sign in to comment.