Solve online issues

Solve pdf creation and date issue
I only gave permissions to the right folder and also take the updated
datepicker js file