Skip to content

Commit

Permalink
Merge pull request #44 from emredjan/fix-date-formatting
Browse files Browse the repository at this point in the history
Change day formatter to be zero-padded
  • Loading branch information
marimeireles authored Jun 17, 2021
2 parents 3b87303 + b1ffb37 commit 3976c04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xeus_sql_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ namespace xeus_sql
case soci::dt_date:
std::tm when = r.get<std::tm>(i);
char buffer [20];
std::strftime(buffer, 20, "%Y-%m-%e %H:%M:%S", &when);
std::strftime(buffer, 20, "%Y-%m-%d %H:%M:%S", &when);
cell = buffer;
break;
}
Expand Down Expand Up @@ -379,14 +379,14 @@ namespace xeus_sql
result["implementation_version"] = XSQL_VERSION;

/* The jupyter-console banner for xeus-sql is the following:
_
_
| |
__ _____ _ _ ___ ___ __ _| |
\ \/ / _ \ | | / __| / __|/ _` | |
> < __/ |_| \__ \ \__ \ (_| | |
/_/\_\___|\__,_|___/ |___/\__, |_|
| |
|_|
| |
|_|
xeus-sql: a Jupyter kernel for SOCI
SOCI version: x.x.x
*/
Expand Down

0 comments on commit 3976c04

Please sign in to comment.