can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r20362: LJSUP-10163: Date of entry is incorrect ...

Committer: dpetrov
LJSUP-10163: Date of entry is incorrect when I try to change it
U   trunk/htdocs/js/entry.js
Modified: trunk/htdocs/js/entry.js
===================================================================
--- trunk/htdocs/js/entry.js	2011-10-18 11:34:13 UTC (rev 20361)
+++ trunk/htdocs/js/entry.js	2011-10-18 11:46:33 UTC (rev 20362)
@@ -659,7 +659,7 @@
 	}
 
 	f.date_ymd_yyyy.value = newTime.getFullYear() < 1900 ? newTime.getFullYear() + 1900 : newTime.getFullYear();
-	f.date_ymd_mm.selectedIndex = twodigit(newTime.getMonth() + 1);
+	f.date_ymd_mm.selectedIndex = newTime.getMonth();
 	f.date_ymd_dd.value = twodigit(newTime.getDate());
 	if (!time) {
 		f.hour.value = twodigit(newTime.getHours());

Tags: can3p, dpetrov, js, livejournal
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