Taimoor-Tariq / BetterDiscordStuff

My BetterDiscord Plugins and Themes
https://ko-fi.com/TaimoorTariq
GNU General Public License v2.0
19 stars 17 forks source link

[ BUG | SendTimestamps ] Manual 'time' change entry causes format value not to update and breaks output #18

Closed Wiethoofd closed 2 years ago

Wiethoofd commented 2 years ago

Manually changing the date value updates what it displays in 'Format', however doing the same for the time value only updates it the first few times and breaks on consecutive changes afterwards, even using the clock button afterwards doesn't update it.

After the time stops updating in the Format display changing the Date again will then reset the time in the Format display to 12:00 AM.

At any point after the time stops updating the value in Format clicking the 'Enter' button will output <t:NaN:f> in chat instead of a valid Unix-timestamp.

e.g. Time has been changed repeatedly and Format shows incorrect value: SendTimeStamps

Step to reproduce:

  1. Manually type an hour value starting with a 0
  2. Format now does not update the time section anymore
  3. (Optional) Change the minute value to any different value and clicking Enter will now output the NaN timestamp
  4. (Optional) Use any way to change the Date (manual entry, arrow key to increase or decrease any value or changing from the calendar) and now the Format will display 12AM and not update its time section anymore
Taimoor-Tariq commented 2 years ago

Sorry been busy with university stuff. I will fix it soon.

Taimoor-Tariq commented 2 years ago

Fixed in the latest update 🙂