Date not correct time zone despite using moment...


1 comment

  • Rainer Grabowski


    you can't use moment().toDate() in combination with text (or a number). Podio calc field can have 3 formats: text, number, date. If you use moment().toDate() the calculation wants to show it like a date field, if you add text (like you do) you make it a string (= text format). You also can't combine toDate().format()  - it must be either or (or you get a script error) 

    You simply need:

    @text + " " + @moment(date).tz("America/Vancouver").format("YYYY-MM-DD") 

    if you want the result like 2018-04-09. 

    Hope it helps


    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk