How to set timezone in jquery countdown timer

Posted by Kalpana on Stack Overflow See other posts from Stack Overflow or by Kalpana
Published on 2010-05-20T06:05:39Z Indexed on 2010/05/20 6:10 UTC
Read the original article Hit count: 405

Filed under:

I want to set GMT+5:30 as my timezone in jquery countdown. Start Time for countdown is 'Thu May 20 16:00:00 IST 2010' End Time is 'Thu May 20 17:00:00 IST 2010' as value.

+330 is my timezone given in minutes. But my countdown starts from 00:35:00. I would have expected the countdown to start from 01:00:00 Not sure why this is discrepancy is there.

    <script type="text/javascript">
        $(function () {
            var endTime = '#{myBean.getCountDownDate()}';
            $('#defaultCountdown').countdown({
                until: endTime, format: 'HMS',
                timezone: +330,
                compact: true, description: '#{myBean.getCountDownDate()}'});
        });
    </script>

© Stack Overflow or respective owner

Related posts about jQuery