correct default time and factorize code
correct default time and factorize code

RaspberryCook/website,madeindjs/raspberry_cook,RaspberryCook/website,RaspberryCook/website,madeindjs/raspberry_cook,madeindjs/raspberry_cook