Ideas for Vusion Manager

getTimezoneOffset() not Work

We include the date and time on the label. Unfortunately, the correct time is not displayed because the time zone is not correct. If I want to adjust this in the template with getTimezoneOffset() this does not work.


Your support has confirmed this to me. I should report this as an idea because this feature does not exist yet.


Example:

function value(article, label) {

var date = new Date(new Date.now() + (new Date().getTimezoneOffset()*60000));

return formatDate('dd/MM/yyyy - HH:mm',date);

}

  • Guest
  • Apr 26 2023
  • Will not implement
  • Attach files
  • Guest commented
    May 12, 2023 15:53

    Dear customer,

    Thank you for posting this idea. Unfortunately we don't manage any timezone when we generate the image as we don't know in which time zone is located the store. It will be better and more reliable if the information in managed on your side.

    The time zone is only manage on VManager.

    Best,

    Emmanuelle