Skip to content

Commit

Permalink
fix fix 会员日期期限的时区问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyong37 committed Nov 29, 2016
1 parent 5585850 commit 2cb4fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/schedule_operation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def initialize(schedule, customer)
else
case @customer_membership_type
when 'time_card'
@is_membership_valid = @customer_duedate >= schedule.start_time.local_time.to_date
@is_membership_valid = @customer_duedate >= schedule.start_time.localtime.to_date
@customer_reject_msg = '您的会员卡已经到期!' unless @is_membership_valid
when 'measured_card'
@is_membership_valid = @customer_remainming_times >= 1
Expand Down

0 comments on commit 2cb4fef

Please sign in to comment.