madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20610: LJSUP-10280: When user set wrong date is...

Committer: sbelyaev
LJSUP-10280: When user set wrong date is displayed incorrect error
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2011-11-23 10:32:04 UTC (rev 20609)
+++ trunk/cgi-bin/weblib.pl	2011-11-23 12:44:36 UTC (rev 20610)
@@ -1123,8 +1123,10 @@
     # date/time
     my $date = LJ::html_datetime_decode({ 'name' => "date_ymd", }, $POST);
     my ($year, $mon, $day) = split( /\D/, $date);
-    my ($hour, $min) = ($POST->{'hour'}, $POST->{'min'});
 
+    my $time_value= $POST->{'time'}; # get value of hh::mm
+    my ($hour, $min) = split ( /:/, $time_value);
+
     # TEMP: ease golive by using older way of determining differences
     my $date_old = LJ::html_datetime_decode({ 'name' => "date_ymd_old", }, $POST);
     my ($year_old, $mon_old, $day_old) = split( /\D/, $date_old);

Tags: livejournal, madeon, pl, sbelyaev
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