GithubHelp home page GithubHelp logo

Comments (11)

trentrichardson avatar trentrichardson commented on August 29, 2024

I have noticed this bug as well and am working on a fix

from jquery-timepicker-addon.

rosali avatar rosali commented on August 29, 2024

The following fixed getDate issue. setDate method is still a problem.
[code]
//#######################################################################################
// override getDate() to allow getting time too within Date object
//#######################################################################################
$.datepicker._base_getDateDatepicker = $.datepicker._getDateDatepicker;
$.datepicker._getDateDatepicker
= function(target, noDefault) {
var inst = this._getInst(target),
tp_inst = this._get(inst, 'timepicker');
//timepicker instance exists
if (tp_inst)
return (!inst.currentYear || (inst.input && inst.input.val() == '')) ?
null :
(new Date(inst.currentYear, inst.currentMonth, inst.currentDay, tp_inst.hour, tp_inst.minute, tp_inst.second));
//timepicker instance does not exist
else return new Date(inst.currentYear, inst.currentMonth, inst.currentDay);
};

[/code]

from jquery-timepicker-addon.

trentrichardson avatar trentrichardson commented on August 29, 2024

Hey Rosali,

For an immediate fix that should work ok, however, this does bypass a lot of datepicker functionality. Thanks for posting the quick fix though, I may use this for the time being.

Trent

from jquery-timepicker-addon.

trentrichardson avatar trentrichardson commented on August 29, 2024

Hey Rosali,

Please check out the dev version, it should work now. Please let me let me know if so.

from jquery-timepicker-addon.

agentphoenix avatar agentphoenix commented on August 29, 2024

I pulled doublerebel's unstable branch to fix the hourMin/hourMax bug, but now I'm running in to the datepicker issue that's fixed on this branch. Are both of these issues going to be in the 0.9.2 release when it's ready?

from jquery-timepicker-addon.

trentrichardson avatar trentrichardson commented on August 29, 2024

We will merge our bug fixes for 0.9.2, so they will both be included

from jquery-timepicker-addon.

trentrichardson avatar trentrichardson commented on August 29, 2024

Also if you need this fix just look at the lines replaced in my latest dev, its only a couple lines and you can just completely swap my new function with the old one:

$.datepicker._getDateDatepicker

from jquery-timepicker-addon.

agentphoenix avatar agentphoenix commented on August 29, 2024

Thanks for the tip. I gave it a try, but it didn't work.

Firebug is throwing the error this._get(inst, "timepicker") is undefined and it's showing the error as being on line 600 of timepicker.js.

from jquery-timepicker-addon.

trentrichardson avatar trentrichardson commented on August 29, 2024

that should be a conditional.. if you feel comfortable reworking it into:

var tp_inst = this._get(inst, "timepicker");
if(tp_inst) tp_inst._addTimePicker();

from jquery-timepicker-addon.

agentphoenix avatar agentphoenix commented on August 29, 2024

Worked beautifully! Thank you for all your help, you've been awesome!

from jquery-timepicker-addon.

trentrichardson avatar trentrichardson commented on August 29, 2024

Fixed in dev branch, closing

from jquery-timepicker-addon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.