Skip to content

Commit

Permalink
The bson type that's epoch milliseconds is called date. Fix it in ano…
Browse files Browse the repository at this point in the history
…ther place.

BUGZID:
  • Loading branch information
lehenbauer committed Feb 22, 2014
1 parent e31a871 commit a6f1b6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ specifies the bson data type to be encoded, from the following list:
* long
* double
* bool
* clock
* date
* null
* undefined
* binary_generic
Expand Down
6 changes: 3 additions & 3 deletions generic/bson.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ mongotcl_bsonObjectObjCmd(ClientData cData, Tcl_Interp *interp, int objc, Tcl_Ob
"int",
"double",
"bool",
"clock",
"date",
"null",
"undefined",
"kvlist",
Expand All @@ -844,7 +844,7 @@ mongotcl_bsonObjectObjCmd(ClientData cData, Tcl_Interp *interp, int objc, Tcl_Ob
OPT_APPEND_INT,
OPT_APPEND_DOUBLE,
OPT_APPEND_BOOL,
OPT_APPEND_CLOCK,
OPT_APPEND_DATE,
OPT_APPEND_NULL,
OPT_APPEND_UNDEFINED,
OPT_APPEND_KVLIST,
Expand Down Expand Up @@ -966,7 +966,7 @@ mongotcl_bsonObjectObjCmd(ClientData cData, Tcl_Interp *interp, int objc, Tcl_Ob
break;
}

case OPT_APPEND_CLOCK: {
case OPT_APPEND_DATE: {
long clock;
char *key;

Expand Down

0 comments on commit a6f1b6f

Please sign in to comment.