Skip to content

Commit 3976c04

Browse files
authored
Merge pull request #44 from emredjan/fix-date-formatting
Change day formatter to be zero-padded
2 parents 3b87303 + b1ffb37 commit 3976c04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/xeus_sql_interpreter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace xeus_sql
131131
case soci::dt_date:
132132
std::tm when = r.get<std::tm>(i);
133133
char buffer [20];
134-
std::strftime(buffer, 20, "%Y-%m-%e %H:%M:%S", &when);
134+
std::strftime(buffer, 20, "%Y-%m-%d %H:%M:%S", &when);
135135
cell = buffer;
136136
break;
137137
}
@@ -379,14 +379,14 @@ namespace xeus_sql
379379
result["implementation_version"] = XSQL_VERSION;
380380

381381
/* The jupyter-console banner for xeus-sql is the following:
382-
_
382+
_
383383
| |
384384
__ _____ _ _ ___ ___ __ _| |
385385
\ \/ / _ \ | | / __| / __|/ _` | |
386386
> < __/ |_| \__ \ \__ \ (_| | |
387387
/_/\_\___|\__,_|___/ |___/\__, |_|
388-
| |
389-
|_|
388+
| |
389+
|_|
390390
xeus-sql: a Jupyter kernel for SOCI
391391
SOCI version: x.x.x
392392
*/

0 commit comments

Comments
 (0)