From 76cb7c2acc49ee6d198cf90cc9615d6d56c29ede Mon Sep 17 00:00:00 2001 From: BingqingLyu Date: Mon, 18 Sep 2023 16:46:23 +0800 Subject: [PATCH] minor fix --- interactive_engine/executor/ir/common/src/utils.rs | 4 ++-- interactive_engine/executor/ir/proto/common.proto | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interactive_engine/executor/ir/common/src/utils.rs b/interactive_engine/executor/ir/common/src/utils.rs index 921b2e8cb717..d5066409c1f3 100644 --- a/interactive_engine/executor/ir/common/src/utils.rs +++ b/interactive_engine/executor/ir/common/src/utils.rs @@ -608,10 +608,10 @@ impl From 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!(), diff --git a/interactive_engine/executor/ir/proto/common.proto b/interactive_engine/executor/ir/proto/common.proto index 40fbee263646..034c6581f74a 100644 --- a/interactive_engine/executor/ir/proto/common.proto +++ b/interactive_engine/executor/ir/proto/common.proto @@ -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; }