The bson_oid_generated_time function fills in the first 4 bytes of a time_t and returns it. However, time_t length is system dependent. On my mac, it's 32 bits, but on my Ubuntu EC2 machine, it's 64. So on Ubuntu, I'm getting nonsense. Works correctly if I cast the result to a 32 bit int, and then back to a time_t.
- Assignee:
- Gary Murakami
- Reporter:
- David Crawford
- Votes:
-
0 Vote for this issue
- Watchers:
-
3 Start watching this issue
- Created:
- Updated:
- Resolved: