mustafaaloko / nova-persian-datepicker

Persian Datepicker for Laravel Nova
MIT License
18 stars 2 forks source link

the calendar has 1 day difference with real date #3

Open vahidRP opened 5 years ago

vahidRP commented 5 years ago

Hi I am using your tool in laravel 5.6 with nova 1.3 but when i save a date, it saves correctly in database but after saving in displaying the date in nova it has 1 day difference. for example when i save 1398/02/09 it saves 2019-04-29 correctly in database but in nova it shows 1398/02/10. My timezone in laravel and my server is Asia/Tehran. How can i fix it?

bahirbarak commented 4 years ago

I am facing the same problem but no response from anyone, have you found any solution @vahidRP?

vahidRP commented 4 years ago

I am facing the same problem but no response from anyone, have you found any solution @vahidRP?

No, i'm just dealing with it @bahirbarak

y53dhadi commented 4 years ago

@vahidRP Have you used JDF class? due to your correct saving of the date you entered ( I mean 2019-04-29 ) you can use the JDF class to show data in Jalali format in a View!

bahirbarak commented 4 years ago

ok i will try that, thanks in advance