checkin checkout time fun:
This commit is contained in:
@@ -183,7 +183,7 @@ class DiningFacility < ApplicationRecord
|
||||
def check_time(time, booking = nil, type)
|
||||
status = true
|
||||
today = Time.now.utc.strftime("%Y-%m-%d %H:%M")
|
||||
check_time = Time.parse(time.strip).utc.strftime("%Y-%m-%d %H:%M")
|
||||
check_time = time.strftime("%Y-%m-%d %H:%M")
|
||||
if type.downcase == "checkin"
|
||||
if check_time < today
|
||||
status = false
|
||||
|
||||
Reference in New Issue
Block a user