-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PubSub: Message publish_time return type unexpected #5598
Comments
@alexcwatt Thanks for the report! I believe that updating the implementation / test to convert the integer timestamp to a date time is best. |
@theacodes I marked this as |
@theacodes Hmm, apparently I misunderstood the |
@alexcwatt If you don't already have a PR in hand, I'm going to go ahead this week, so that we can get the change in place before the upcoming GA release. |
Rather than a 'google.protobuf.timestamp_pb2.Timestamp' instance. Closes #5598.
@tseaver Awesome, thanks! |
Rather than a 'google.protobuf.timestamp_pb2.Timestamp' instance. Closes #5598.
I am working on a PubSub project and was a bit confused about the Message
publish_time
. I expected to getdatetime
per the docstring for the method. Instead I got aTimestamp
that apparently comes from protobuf types. I found there is even a unit test that verifies thatpublish_time
returns aTimestamp
.Can we return
datetime
? Or should the docs just be updated to explain what is actually being returned? I'd prefer the former but wanted to ask before submitting a PR, given the inconsistency.The text was updated successfully, but these errors were encountered: