switch to numeric date in Email settings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1605

    switch to numeric date in Email settings

    I prefer numeric date format in all my entities, but Email entity is not customizable. How can I achieve it there?
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    #2
    You can just make the field like dateSent custom under custom\Espo\Custom\Resources\metadata\entityDefs\E mail.json

    PHP Code:
    {
        "fields": {
            "dateSent": {
                "customizationDisabled": false
                 "useNumericFormat": true,
                "minuteStep": 30​
            }
        }
    }

    You can apply this to all fields that are by default have customizationDisabled => false under the original entityDefs of Email.json
    This will allow the field to be customizable and at the same time use the numeric format.

    Cheers
    Rabii
    Web Dev

    Comment


    • shalmaxb
      shalmaxb commented
      Editing a comment
      I guess, this would not be update safe, right.

    • rabii
      rabii commented
      Editing a comment
      this should be upgrade safe but consider what yuri mentioned here.
  • yuri
    Member
    • Mar 2014
    • 8452

    #3
    I do not recommend to disable "customizationDisabled" for fields. It is made for reason. More headache for us with broken systems. Sometimes I wish Espo were not too customizable.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment


    • shalmaxb
      shalmaxb commented
      Editing a comment
      I understand that and I avoid messing with the non customizable things. But perhaps it could be an idea, if you consider to offer a global configuration for date numeric or not.
      Besides that, I would not wish, espoCRM would be less customizable, it brings so much fun and cheerful moments to my life.....

    • rabii
      rabii commented
      Editing a comment
      I understand, was just trying to help

    • shalmaxb
      shalmaxb commented
      Editing a comment
      rabii, no doubt and thank you
Working...