Javascript x UTC
AnsweredHello again, folks
I am trying to extract the hour from a date field using the following statement:
@Período Inicial.getHours();
I live in Sao Paulo - Brazil where UTC is -2. Using the above statement will result in a different hour because I believe the function is ignoring my Podio UTC setting. Is there a way to correct this?
Thanks,
Eduardo
-
Hi Eduardo,
you can try:
moment(@Período Inicial).tz("America/Sao_Paulo").format("HH.mm")
For calculating with time values the momentjs-library is great (its supported by Podio). http://momentjs.com/docs/
Please sign in to leave a comment.
Comments
3 comments