otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


Integration and Data Mapping Integrating OTM / G-Log with external and legacy systems - including XML, WebServices, SOA, ESB, BPEL, EDI and Oracle's Fusion.

Tags: ,

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 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
new_otm is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 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
rvhaaster is on a distinguished road
Send a message via AIM to rvhaaster
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.
__________________
Rob van Haaster

MavenWire Europe
www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 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
new_otm is on a distinguished road
Re: Error on the time if an event

Hi,
So, it is possible to change the database configuration?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 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
rvhaaster is on a distinguished road
Send a message via AIM to rvhaaster
Re: Error on the time if an event

Why would you as this is standard & correct behaviour?
__________________
Rob van Haaster

MavenWire Europe
www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 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
new_otm is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 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
rvhaaster is on a distinguished road
Send a message via AIM to rvhaaster
Re: Error on the time if an event

Hi,

You could consider using the function UTC.GET_LOCAL_DATE(event_date,location)
__________________
Rob van Haaster

MavenWire Europe
www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 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
new_otm is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 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
rvhaaster is on a distinguished road
Send a message via AIM to rvhaaster
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!
__________________
Rob van Haaster

MavenWire Europe
www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 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
new_otm is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Event table new_otm Database Administration 2 April 1st, 2008 16:15
Add Event Screen sn1405 Branding, Screen Sets, XSL/CSS and Translations 0 February 18th, 2008 07:00
Voyage time out error prashant_prash Freight Forwarding 1 January 23rd, 2008 01:21
Event Time check Arun George Workflow 0 January 17th, 2008 22:06
[SOLVED] Lead time for shipment start time bob_romijn Planning 1 August 8th, 2007 15:27



All times are GMT. The time now is 21:18.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37