Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-3442

BSON - UTC timestamp int64 vs uint64?

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Ruby Drivers

      Jamis, in your most recent commit it seems you maybe changed the BSON "UTC Timestamp" byte from an int64 to a uint64

      https://github.com/mongodb/bson-ruby/commit/79d5aed08728322137d5c0082ba3d10b9bcb21d5

      I'm wondering which is more correct for BSON spec? I've tested both versions here and they seem to be fine, which is strange to be, b/c I'd think one would be broken?

      https://steveridout.com/mongo-object-time/

      Which does the BSON spec say is correct?

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: