flatpress icon indicating copy to clipboard operation
flatpress copied to clipboard

Wrong time for 'Welcome' entry

Open bttrx opened this issue 2 years ago • 6 comments

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.

bttrx avatar Apr 18 '22 17:04 bttrx

As we are already talking about the 'Welcome' entry:

  1. The author for this entry should be set to 'FlatPress'. Otherwise using the Leggero theme it reads: 'Posted by at 17:00:52'.
  2. A typo to fix: 'sourrounding' -> 'surrounding'.

bttrx avatar Apr 18 '22 18:04 bttrx

Thanks for reporting! Current status:

  • [ ] Timezone problem
  • [ ] Missing author
  • [x] Typo (fixed with f465c79470f2ff4ff941fcc6442d02f9416589fe)

Possibly related to #113 and #116!

azett avatar Jun 18 '22 19:06 azett