remove unnessary timezone convertion
This commit is contained in:
@@ -42,7 +42,7 @@ class MenuCategory < ApplicationRecord
|
||||
|
||||
from_t = Time.parse(menu.valid_time_from.strftime("%H:%M:%S"))
|
||||
to_t = Time.parse(menu.valid_time_to.strftime("%H:%M:%S"))
|
||||
current_t = Time.parse(Time.now.utc.getlocal.strftime("%H:%M:%S"))
|
||||
current_t = Time.parse(Time.now.strftime("%H:%M:%S"))
|
||||
|
||||
from = from_t.hour * 3600 + from_t.min*60 + from_t.sec
|
||||
to = to_t.hour * 3600 + to_t.min* 60 + to_t.sec
|
||||
|
||||
Reference in New Issue
Block a user