Method Community

 

Reports and API returning wrong time

Last post 11-24-2014 3:39 PM by Matt. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-19-2014 12:29 PM

    • NickZeik
    • Top 500 Contributor
    • Joined on 03-03-2013
    • St. Petersburg, FL
    • Posts 17

    Reports and API returning wrong time

    I wasn't sure where to post this but I think this must be a data issue. We've created an event system using Method and have a table dedicated to creating timelines for events that are driven by a date/time field. We are having an odd problem where reports and the API return the correct value for some records and others return a time 1 hour later than what is in the database. The table NOVAEventMilesotnes is linked to the NOVAEvents table and these errors seem to be consistent across an event. I see no difference in the data when viewed through the UI.

    Nick Mazeika
    Consultant
    I'm You When You Can't Be
  • 10-21-2014 10:50 AM In reply to

    Re: Reports and API returning wrong time

    Hi Nick,

    You called our support line and we created a case for this. For anyone who may be looking at this post, it appears the API may not be correcting for daylight savings time. We are looking into this and I will update this thread once I have more information.

    -Audisho

    Audisho Sada
    Product Manager
    Method:CRM
    a.sada@method.me
    Toll Free: 1.888.925.6238
    Local & Overseas: 416.847.0400
    Fax: 416.640.6027
  • 11-24-2014 11:14 AM In reply to

    Re: Reports and API returning wrong time

    As I discussed over the phone with Nick, the reason that this occurs is that the API relays all time in UTC and any time zone calculations need to be done by the application that is using the API.

    Dev - Can you please comment on this post and possibly point Nick in the right direction with regards to dynamically having his website correct for DST. At this time he has to alter his code when DST starts and ends to correct for this.

    -Audisho

    Audisho Sada
    Product Manager
    Method:CRM
    a.sada@method.me
    Toll Free: 1.888.925.6238
    Local & Overseas: 416.847.0400
    Fax: 416.640.6027
  • 11-24-2014 3:39 PM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: Reports and API returning wrong time

    Nick,

    I'm not sure what language you are using to make the API calls, but there should be a convert to UTC method that you can call on the date before sending it to Method. Here is an example for .net http://msdn.microsoft.com/en-us/library/system.datetime.touniversaltime%28v=vs.110%29.aspx


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


Page 1 of 1 (4 items)