flatpress
flatpress copied to clipboard
Wrong time for 'Welcome' entry
Hi!
I installed fp-1.2.1 to a Synology DiskStation.
During setup FlatPress creates a 'Welcome' entry to showcase some features.
I did the setup at 7pm CEST and that's also what the DiskStation's file manager shows for the modified date of the corresponding entry*.txt file.
But in FlatPress' frontend and backend this entry is shown as it was created at 5pm. Filename on the DiskStation is entry220418-170052.txt.
DATE timestamp inside the .txt file is 1650301252
. According to https://unixtime.org/ this represents 'GMT | Mon Apr 18 2022 17:00:52 GMT+0000' or 7pm CEST.
A user creating his/her first entry now, will get 7:..pm for that entry and is probably confused by the 2-hour difference.
FP's ships with a time offset of 2 hours. This offset should also be applied when creating the 'Welcome' entry. Best would probably be to already ask the user during setup for the right time offset.
As we are already talking about the 'Welcome' entry:
- The author for this entry should be set to 'FlatPress'. Otherwise using the Leggero theme it reads: 'Posted by at 17:00:52'.
- A typo to fix: 'sourrounding' -> 'surrounding'.
Thanks for reporting! Current status:
- [ ] Timezone problem
- [ ] Missing author
- [x] Typo (fixed with f465c79470f2ff4ff941fcc6442d02f9416589fe)
Possibly related to #113 and #116!