Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BingqingLyu committed Sep 18, 2023
1 parent c25b613 commit 76cb7c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions interactive_engine/executor/ir/common/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,10 @@ impl From<Object> for common_pb::Value {
+ time.nanosecond() as i32 / 1000_000,
}),
DateTimeFormats::DateTime(dt) => {
common_pb::value::Item::Timestamp(common_pb::Timestamp { item: dt.timestamp() })
common_pb::value::Item::Timestamp(common_pb::Timestamp { item: dt.timestamp_millis() })
}
DateTimeFormats::DateTimeWithTz(dt) => {
common_pb::value::Item::Timestamp(common_pb::Timestamp { item: dt.timestamp() })
common_pb::value::Item::Timestamp(common_pb::Timestamp { item: dt.timestamp_millis() })
}
},
_ => unimplemented!(),
Expand Down
2 changes: 1 addition & 1 deletion interactive_engine/executor/ir/proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ message Time32 {
}

message Timestamp {
// int64 microseconds since 1970-01-01 00:00:00.000000 (in an unspecified timezone)
// int64 milliseconds since 1970-01-01 00:00:00.000000 (in an unspecified timezone)
int64 item = 1;
}

Expand Down

0 comments on commit 76cb7c2

Please sign in to comment.