Vlad Kurkin (b_vladi) wrote in changelog,
Vlad Kurkin
b_vladi
changelog

[livejournal] r21073: LJSUP-11114: Incrorrect month sends if a...

Committer: vkurkin
LJSUP-11114: Incrorrect month sends if a user use a custom time.
U   trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js
Modified: trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js
===================================================================
--- trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js	2012-02-02 10:17:28 UTC (rev 21072)
+++ trunk/htdocs/js/jquery/jquery.lj.entryDatePicker.js	2012-02-02 10:46:19 UTC (rev 21073)
@@ -50,8 +50,8 @@
 				return;
 			}
 			newDate.setFullYear(self.currentDate.getFullYear());
+			newDate.setDate(self.currentDate.getDate());
 			newDate.setMonth(self.currentDate.getMonth());
-			newDate.setDate(self.currentDate.getDate());
 			self._setEditDate(newDate);
 		},
 		onChangeDate: function(evt) {

Tags: b_vladi, js, livejournal, vkurkin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments