rosulek / gmail-tickler

Get emails out of your inbox until a specified date
MIT License
19 stars 5 forks source link

Support custom formats for label timestamps #22

Open lehrblogger opened 7 years ago

lehrblogger commented 7 years ago

More info in the associated issue https://github.com/rosulek/gmail-tickler/issues/21. I realize we could probably use the library elsewhere as well, but I wanted to minimize the changes for now.

I went back and forth a bit about whether we wanted the minified moment.js or not, but since we don't need to optimize for page load times, I figured it better for it to be readable.

This is with a format of "YYYY-MM-DD HH:mm":

screen shot 2016-11-27 at 8 01 25 pm

lehrblogger commented 7 years ago

Oh, and I think we don't need Moment Timezone because it's handled by the environment in which Google runs the script, so that simplifies things a bit.

lehrblogger commented 7 years ago

A coworker told me about Google Apps Script Libraries today: https://developers.google.com/apps-script/guide_libraries. I think that's probably overkill for the moment.gs file, but it's still a potentially-useful thing to keep in mind.