Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tirithen/vibe.d
Browse files Browse the repository at this point in the history
  • Loading branch information
tirithen committed Feb 6, 2020
2 parents b41b7ef + 17f897b commit 4adcc91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/vibe/data/bson.d
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ struct Bson {
const ubyte[16] b = bbd.rawData;
return UUID(b);
}
else static if (is(T == SysTime)) {
checkType(Type.date);
return BsonDate(fromBsonData!long(m_data)).toSysTime();
}
else static assert(false, "Cannot cast "~typeof(this).stringof~" to '"~T.stringof~"'.");
}

Expand Down

0 comments on commit 4adcc91

Please sign in to comment.