Add human readable date, keep machine readable

This commit is contained in:
Chris Josten 2020-06-28 00:43:15 +02:00
parent 9f879be71b
commit 76b3ca0d33
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ import std.datetime;
import dyaml;
string toHumanString(DateTime value) {
return to!string(value.year) ~ "-" ~ to!string(ubyte(value.month)) ~ "-" ~ to!string(value.day);
return to!string(value.day) ~ "-" ~ to!string(ubyte(value.month)) ~ "-" ~ to!string(value.year);
}
T getOr(T)(Node node, string key, T or) {