Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
How to set specific start time in FlipClock js widget?

I want to set New York time in FlipClock.js widget along with moment.js. I have tried with

HTML
<div class="my_flip_clock"></div>

JS
var a = moment.tz('America/New_York');
var clock = $('.my_flip_clock').FlipClock({
    clockFace: 'TwelveHourClock'
});
clock.setTime(new Date(a.format()).getTime() / 1000);
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

From the Moment Timezone documentation:

There are two interfaces for using time zones with Moment.js.

moment.tz(..., String) is used to create a moment with a time zone, and moment().tz(String) is used to change the time zone on an existing moment.

var d = new Date(); // Get a new JS Date instance at current time in system time zone
var a = moment.tz(d.getTime(), 'America/New_York');  // Convert to New York time zone
var dny = new Date(a.format('YYYY-MM-DD hh:mm:ss a')); // Get new JS Date instance for values in New York
var clock = $('.my_flip_clock').FlipClock(dny, {
    clockFace: 'TwelveHourClock'
});
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!