You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For pmo.Options as ibmmq.MQPMO_SET_ALL_CONTEXT, when I put a message through my app, it's showing no values for put date/time on MQ explorer.
However the message put date/time is correct with MQPMO_DEFAULT_CONTEXT and MQPMO_SET_ALL_CONTEXT.
So I tried with putMqmd.PutDateTime = time.Now()
This is giving different timestamps for context ALL as compared to Default and Identity.
Like if it's showing a timestamp for Default and Identity context, it's showing timestamp + 5hrs for all context
Could you please suggest.
Thanks,
Sneha
The text was updated successfully, but these errors were encountered:
I assume you are in a +5 timezone. The fields in the MQMD are considered to always be in UTC/GMT. Some tools convert to local time when displaying them, and some do not.
I am in the IST time zone and setting putMqmd.PutDateTime = time.Now().UTC().
I have observed the following:
Context ALL works: The timestamp is correct in MQ Explorer when using MQPMO_SET_ALL_CONTEXT.
7-second delay with ALL context: There's a 7-second delay in messages with MQPMO_SET_ALL_CONTEXT compared to
MQPMO_DEFAULT_CONTEXT and MQPMO_SET_IDENTITY_CONTEXT.
Discrepancy between log and MQ Explorer: The timestamp I printed in the logs differs from what MQ Explorer shows for
MQPMO_DEFAULT_CONTEXT and MQPMO_SET_IDENTITY_CONTEXT.
When I set MQMD property with 2025-02-03 11:31:07.8324988 +0000 UTC, after queue.Put(putMqmd, pmo, buffer) it's
showing 2025-02-03 11:31:00.81 +0000 UTC
PutDateTime seems unaffected for Default/Identity: It appears that putMqmd.PutDateTime = time.Now().UTC() has no effect
on the MQMD PutDateTime for MQPMO_DEFAULT_CONTEXT and MQPMO_SET_IDENTITY_CONTEXT.
If you have set the SET_ALL_CONTEXT flag, then the date/time comes from what you have explicitly set. Otherwise. the queue manager will set and overwrite the date/time values, based on the clock of the queue manager. Regardless of what you might have set in the MQMD.
Hi @ibmmqmet ,
For pmo.Options as ibmmq.MQPMO_SET_ALL_CONTEXT, when I put a message through my app, it's showing no values for put date/time on MQ explorer.
However the message put date/time is correct with MQPMO_DEFAULT_CONTEXT and MQPMO_SET_ALL_CONTEXT.
So I tried with putMqmd.PutDateTime = time.Now()
This is giving different timestamps for context ALL as compared to Default and Identity.
Like if it's showing a timestamp for Default and Identity context, it's showing timestamp + 5hrs for all context
Could you please suggest.
Thanks,
Sneha
The text was updated successfully, but these errors were encountered: