Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This patch file was generated by NetBeans IDE
- # This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
- # It uses platform neutral UTF-8 encoding.
- # Above lines and this line are ignored by the patching process.
- --- ...wp-content\plugins\pods\ui\js\date_input.orig.js
- +++ ...\wp-content\plugins\pods\ui\js\date_input.js
- @@ -96,8 +96,14 @@
- stringToDate: function() {
- var input = this.input.val();
- + var currentDate;
- matches = input.match(/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/);
- - var currentDate = new Date(matches[1], matches[2] - 1, matches[3], matches[4], matches[5], matches[6]);
- \ No newline at end of file
- + if (matches[1] == "0000") {
- + currentDate = new Date();
- + }
- + else {
- + currentDate = new Date(matches[1], matches[2] - 1, matches[3], matches[4], matches[5], matches[6]);
- + }
- \ No newline at end of file
- this.selectMonth(currentDate);
- },
Add Comment
Please, Sign In to add comment