Why is {{timestamp "L"}} (or any format) throwing an error "... Missing helper: "timestamp ..."

Comments

4 comments

  • Uma Lakshmi Kanth Garimella Lead Engineer
    Celigo University Level 2: Seasoned

    Hey Steve,

    We have a bug logged for this and we are fixing this in an upcoming release.

    You can use `{{{timeStamp "L"}}}`(with a capital S) for now or the dateFormat helper.

    1
  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up
    Engaged

    Hi Uma Lakshmi Kanth Garimella,

    My colleague David Gollom was telling me something about this workaround and I could swear I tried capital Stamp, but still got the error - either way, I just tried it again (per your suggestion) and indeed no error was thrown, BUUUUUUTTtt....... I do get an unexpected result:

    {{timeStamp "L"}}

    Yields:

    2022-08-15T21:44:25-07:00

    The Celigo help for the format strings shows "L" as  

    09/04/2020

     

    When I use workaround:

    {{dateFormat "L" timeStamp}}

    I get:

    08/15/2022

    Which is expected. Is this a bug, or do the format strings behave differently in different contexts?

    1
  • Uma Lakshmi Kanth Garimella Lead Engineer
    Celigo University Level 2: Seasoned

    Hey Steve Klett

    Thank you for reporting this. I'm able to reproduce this. I'll log a bug for this and get it fixed in an upcoming release.

    1
  • David Gollom Strategic Partner
    Top Contributor
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Engaged

    I should have logged something when I found that timestamp vs. timeStamp issue last year.  Sorry i was lazy. 

    0

Please sign in to leave a comment.