| | Integration and Data Mapping Integrating OTM / G-Log with external and legacy systems - including XML, WebServices, SOA, ESB, BPEL, EDI and Oracle's Fusion. |  | 
April 2nd, 2008, 12:26
| | Member | | Join Date: Jun 2007
Posts: 60
Thanks: 15
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2 | | | Error on the time if an event Hi,
I have created an event fora shipment but the event history time is two hours more than the time saved on date base on table ie_status shipment. I am in Spain and the location i have chosen for the event is in Spain.
Does anyone how to solve this?
Thanks. | 
April 2nd, 2008, 13:01
| | Junior Member | | Join Date: Oct 2007 Location: Leuven - Belgium
Posts: 20
Thanks: 1
Thanked 5 Times in 5 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Re: Error on the time if an event New_otm,
Times in db are stored as UTC whereas the eventtime as displayed in eventhistory is displayed taking into account the timezone of the location for wich the event was created. As Spain is either 1 or 2 hours diff from UTC (depending on daylight saving time), this explains the diff between screen and db value.
All times in OTM are stored in DB for UTC. | 
April 2nd, 2008, 15:01
| | Member | | Join Date: Jun 2007
Posts: 60
Thanks: 15
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2 | | | Re: Error on the time if an event Hi,
So, it is possible to change the database configuration?
Thanks. | 
April 2nd, 2008, 15:05
| | Junior Member | | Join Date: Oct 2007 Location: Leuven - Belgium
Posts: 20
Thanks: 1
Thanked 5 Times in 5 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Re: Error on the time if an event Why would you as this is standard & correct behaviour? | 
April 2nd, 2008, 15:41
| | Member | | Join Date: Jun 2007
Posts: 60
Thanks: 15
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2 | | | Re: Error on the time if an event Hi,
I am trying to make a custom report with a query and i want to show the event date field. I am getting it from ie_shipmentstatus table and it is making me confuse because i am seeing on the screen one time for example 17:00 and on database i am getting two hours before for example 15:00 . On screen I always see event date on CET time zone so I want to get in my query the same datetime.
Thanks. | 
April 2nd, 2008, 16:04
| | Junior Member | | Join Date: Oct 2007 Location: Leuven - Belgium
Posts: 20
Thanks: 1
Thanked 5 Times in 5 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Re: Error on the time if an event Hi,
You could consider using the function UTC.GET_LOCAL_DATE(event_date,location) | 
April 2nd, 2008, 17:14
| | Member | | Join Date: Jun 2007
Posts: 60
Thanks: 15
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2 | | | Re: Error on the time if an event Hi,
I am not able to use UTC.get_local_date fuction, i don't know what i should put on the location field.
The error i am getting is ora.20000=Undefined time zone for location
Thanks. | 
April 2nd, 2008, 17:29
| | Junior Member | | Join Date: Oct 2007 Location: Leuven - Belgium
Posts: 20
Thanks: 1
Thanked 5 Times in 5 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Re: Error on the time if an event Have you tried something like utc.get_local_date(ie_shipmentstatus.EVENTDATE,ss_ status_history.EVENT_LOCATION_GID) ?
By doing so I assume you're events are reported at shipment stop (i.e. linked to location_gid) and not at shipment_position. If at shipment position I think the following fields will be null:
ie_shipmentstatus.time_zone_gid
ss_status_history.event_location_gid
and I would not know how to convert UTC to time zone in spain unless by hardcoded delta.
If you need more help I hope some of the tech people out there can help you a bit more, as for me it stops here.
Good luck! | 
April 2nd, 2008, 17:43
| | Member | | Join Date: Jun 2007
Posts: 60
Thanks: 15
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2 | | | Re: Error on the time if an event Hi,
That's what i jave tried an i get the error.
Thank ypu very much for your help |  | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |