Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle Unix Epoch #2

Open
scotthardwick opened this issue Jan 30, 2019 · 1 comment
Open

Toggle Unix Epoch #2

scotthardwick opened this issue Jan 30, 2019 · 1 comment

Comments

@scotthardwick
Copy link

scotthardwick commented Jan 30, 2019

We store all of our dates generally in our databases as a Unix Epoch and it makes it nice to be able to load via WebServices the Epoch dates into Moodle for Users.

Your plugin is nice in that it adds the day of the week and the epoch.

Sometimes however, we don't want the Epoch to show up for certain fields in parenthesis.
Is it possible to toggle whether the user sees a) Human Readable and Epoch or b) Only the Human Readable?

Thanks!

@jpahullo
Copy link
Member

jpahullo commented Feb 1, 2019

It's a very good idea!

However, considering all possibilities, we have:

  1. Enabling human readable and epoch or only human readable outputs should specified at sitewise in the plugin settings. Am I wrong? Are you thinking in other possibilities?
  2. To show only the human readable, we already have the core profile field datetime (http://phpcrossref.com/xref/moodle/user/profile/field/). So, beforehand, it would have no sense to enable this possibility.
  3. Showing both human readable and epoch dates is the current behaviour.

Thanks for your time. Keep in contact.

Jordi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants