lib/knj/php.rb in knjrbfw-0.0.66 vs lib/knj/php.rb in knjrbfw-0.0.67

- old
+ new

@@ -217,11 +217,11 @@ return str end def ucwords(string) - return string.to_s.split(" ").select {|w| w.capitalize! || w }.join(" ") + return string.to_s.split(" ").select{|w| w.capitalize! or w }.join(" ") end def strtoupper(str) return str.to_s.upcase end @@ -701,10 +701,10 @@ cur_time = Time.new hour = cur_time.hour if hour == nil min = cur_time.min if min == nil sec = cur_time.sec if sec == nil - date = cur_time.date if date == nil + date = cur_time.day if date == nil month = cur_time.month if month == nil year = cur_time.year if year == nil new_time = Datet.in("#{year.to_s}-#{month.to_s}-#{date.to_s} #{hour.to_s}:#{min.to_s}:#{sec.to_s}") return new_time.to_i \ No newline at end of file