evilsocket / pwnagotchi-plugins-contrib

User contributed Pwnagotchi plugins.
Other
291 stars 73 forks source link

Enable custom date format in config #13

Closed xBelladonna closed 4 years ago

xBelladonna commented 4 years ago

Make option in config to set the date format using standard python notation.

clock:
  enabled: true
  date_format: "%d/%m/%y"

or in toml

[main.plugins.clock]
enabled = "true"
date_format = "%d/%m/%y"

or if you use "dotted format"

main.plugins.clock.enabled = "true"
main.plugins.clock.date_format = "%d/%m/%y"
xBelladonna commented 4 years ago

I did not create the clock.yml with the default config due to the coming migration to toml... If required please inform me and I will commit.