Skip to content
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

Bad publishTime format used when publishTime not provided in the message context #167

Open
TonyVlcek opened this issue Sep 29, 2023 · 0 comments · May be fixed by #168
Open

Bad publishTime format used when publishTime not provided in the message context #167

TonyVlcek opened this issue Sep 29, 2023 · 0 comments · May be fixed by #168

Comments

@TonyVlcek
Copy link

Current format:

gmdate('%Y-%m-%dT%H:%M:%S.%6NZ')

That produces, for example, this string %2023-%09-%29GMT%13:%Sep:%th.%650 instead of the RFC 3339 format.

It's an easy fix; I'll send a Pull Request. This might also be relevant for #66


I came across this when testing my cloud function with the PubSub emulator. There was a similar issue in the node implementation: googleapis/google-cloud-node#1925.

Ultimately, it would be great if the emulator included this property. Is there a right place to file an issue with the PubSub emulator?
I assume that this is beyond the scope of this PHP repo, nonetheless, from my tests, it seems like there are situations where the publishTime is present in the PubSub message (for example when I'm pulling the message via the PubSub API), but not present when the payload reaches the cloud functions framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants