Author |
Message
|
ashoka |
Posted: Wed Feb 24, 2016 11:25 pm Post subject: Monitoring events Timezone |
|
|
Newbie
Joined: 17 Jun 2015 Posts: 6
|
When I raised a monitoring event on a node, in the event message I'm getting GMT time stamp in the field "creationTime".
Is there any possibility of getting the LocalTime in the "creationTime" |
|
Back to top |
|
 |
maurito |
Posted: Thu Feb 25, 2016 1:18 am Post subject: Re: Monitoring events Timezone |
|
|
Partisan
Joined: 17 Apr 2014 Posts: 358
|
ashoka wrote: |
When I raised a monitoring event on a node, in the event message I'm getting GMT time stamp in the field "creationTime".
Is there any possibility of getting the LocalTime in the "creationTime" |
What does the documentation say about creationTime ?
Is it a configurable property ?, can it be changed ? |
|
Back to top |
|
 |
ruimadaleno |
Posted: Thu Feb 25, 2016 1:48 am Post subject: |
|
|
Master
Joined: 08 May 2014 Posts: 274
|
all events are recorded in GMT time, afaik, in broker version 8, you cannot change this behaviour.
Please check your version documentation. _________________ Best regards
Rui Madaleno |
|
Back to top |
|
 |
timber |
Posted: Thu Feb 25, 2016 2:18 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
Why would you *want* local time in the monitoring event?
Best practice is to always use UTC when communicating with a computer. Apply a time zone only when communicating with a human. |
|
Back to top |
|
 |
ruimadaleno |
Posted: Thu Feb 25, 2016 2:58 am Post subject: |
|
|
Master
Joined: 08 May 2014 Posts: 274
|
timber wrote: |
Best practice is to always use UTC when communicating with a computer. Apply a time zone only when communicating with a human. |
i agree  _________________ Best regards
Rui Madaleno |
|
Back to top |
|
 |
ashoka |
Posted: Thu Feb 25, 2016 3:40 am Post subject: For Record Replay |
|
|
Newbie
Joined: 17 Jun 2015 Posts: 6
|
timber wrote: |
Why would you *want* local time in the monitoring event?
Best practice is to always use UTC when communicating with a computer. Apply a time zone only when communicating with a human. |
Actually I was implementing Record Replay, while logging the event data into database I'm getting GMT timestamp but I need local time stamp. |
|
Back to top |
|
 |
ashoka |
Posted: Thu Feb 25, 2016 3:42 am Post subject: |
|
|
Newbie
Joined: 17 Jun 2015 Posts: 6
|
ruimadaleno wrote: |
all events are recorded in GMT time, afaik, in broker version 8, you cannot change this behaviour.
Please check your version documentation. |
Is there any possibility by using EJB in broker |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 25, 2016 5:25 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
ashoka wrote: |
ruimadaleno wrote: |
all events are recorded in GMT time, afaik, in broker version 8, you cannot change this behaviour.
Please check your version documentation. |
Is there any possibility by using EJB in broker |
There is the possibility of using java. However the broker is not a J2EE container. So no EJB's...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
ashoka |
Posted: Thu Feb 25, 2016 5:54 am Post subject: |
|
|
Newbie
Joined: 17 Jun 2015 Posts: 6
|
fjb_saper wrote: |
ashoka wrote: |
ruimadaleno wrote: |
all events are recorded in GMT time, afaik, in broker version 8, you cannot change this behaviour.
Please check your version documentation. |
Is there any possibility by using EJB in broker |
There is the possibility of using java. However the broker is not a J2EE container. So no EJB's...  |
If we see the toolkit installation directory we had one file "WMBEventEmitterEAR.ear" file.
I'm trying to change that time format in .ear file but I'm unable to do this.
Do you have any idea on this. |
|
Back to top |
|
 |
timber |
Posted: Thu Feb 25, 2016 6:20 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
Quote: |
Actually I was implementing Record Replay, while logging the event data into database I'm getting GMT timestamp but I need local time stamp. |
Why do you need the local time stamp? Why can't the code that consumes the event apply the local time zone? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Feb 25, 2016 6:55 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ashoka wrote: |
If we see the toolkit installation directory we had one file "WMBEventEmitterEAR.ear" file. |
On the understanding I don't get Java, what has something in the Toolkit directory got to do with how the Runtime produces event messages?
I echo the belief of my associate that IIB isn't a J2EE Container. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Feb 25, 2016 6:55 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
timber wrote: |
Quote: |
Actually I was implementing Record Replay, while logging the event data into database I'm getting GMT timestamp but I need local time stamp. |
Why do you need the local time stamp? Why can't the code that consumes the event apply the local time zone? |
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|