AutoTools Return Time in rfc 3339 format

Discussion in 'AutoApps' started by HappyHermet, Oct 12, 2016.

  1. HappyHermet

    HappyHermet New Member

    Joined:
    Apr 10, 2016
    Messages:
    24
    Likes Received:
    0
    Hi guys,

    I'm trying to use Auto Tools and Auto Web (both great by the way!) to interrogate future events in my calendars.

    When using the Google Calendar API through AutoWeb, we need to use the RFC3339 format when limiting the date range. As far as I'm aware, Tasker doesn't return the date in this format, so I'm using AutoTools to return the current time and date. But this doesn't seem to be in the correct format e.g. 2011-06-03T10:00:00-07:00, instead it shows 2011-06-03 10:00:00-07:00.

    Can AutoTools return in the RFC3339 format? I'd rather not have to go through all the hassle of splitting this and rejoining it with the "T" in the middle.

    Many thanks

    HH
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    If you use the
    yyyy-MM-dd'T'HH:mm:ssXXX
    output format it should work :)
     
  3. HappyHermet

    HappyHermet New Member

    Joined:
    Apr 10, 2016
    Messages:
    24
    Likes Received:
    0
    Hi, thanks for the reply. I originally used Tasker in built search replace and set which was straight forward really, but this worked after looking at your suggestion

    yyyy-MM-dd'T'HH:mm:ssZ

    I was just missing the quote marks

    The XXX threw errors

    Thanks for your help, great app!

    Sent from my Nexus 6 using Tapatalk
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Great! :)
     

Share This Page