Skip to content

Commit

Permalink
Age plugin: Optimized precision of age within ~24h of the birthday
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelx committed Jul 12, 2019
1 parent 0f95de2 commit 7c45eca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/assets/1.main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Launchbot",
"version": "3.0.0",
"version": "3.0.2",
"description": "Self-hosted open source startpage. Open collections of websites with one click. It’s like restoring tabs, but anywhere.",
"author": "Michael Xander",
"bugs": "https://github.com/michaelx/Launchbot/issues",
Expand Down
2 changes: 1 addition & 1 deletion src/js/plugins/age.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const renderAge = () => {
// Inspired by:
// Alex MacCaw https://github.com/maccman/motivation
const now = new Date();
const age = (now - new Date(birthday)) / 3.154e+10; // divided by 1 year in ms
const age = (now - new Date(birthday)) / 3.1556952e+10; // divided by 1 year in ms
let remainder = 100 - (age / goal * 100);

let goalPrefix = 'left until';
Expand Down

0 comments on commit 7c45eca

Please sign in to comment.