Giter Club home page Giter Club logo

Comments (5)

sixem avatar sixem commented on May 24, 2024

Good idea, and you are right, the JS does override the formatting because of the timezone adjustments. I think this should be fixable though, i just need to find a way to utilize the same date format for both PHP and JS. I'll see what i can do.

from ivfi-php.

sixem avatar sixem commented on May 24, 2024

I've added a commit to the dev branch. Hopefully it should work now. The date option can now be set to either array('desktop_format', 'mobile_format') or just a regular string if they should both be the same format, i wouldn't recommend this though as the mobile screen space is very limited with these tables.

from ivfi-php.

sixem avatar sixem commented on May 24, 2024

A date format option has been added. (#13)

from ivfi-php.

camjac251 avatar camjac251 commented on May 24, 2024

Sorry for the late reply. I just updated today to the latest version and saw the new variable for adding in the date format. Although I believe the javascript is overriding any php formatting.
What happens is on the load of a page, it'll show the format that php defines but then is overridden by JS but not following the format.
I'm trying to use m/d/y h:i A
I've attached a gif below of what happens on reloading the page
2020-08-22_13-45-37

from ivfi-php.

sixem avatar sixem commented on May 24, 2024

That's weird. Can you double check that you've updated all of the files? This used to be the issue before the latest release but it should be resolved now.

I tried using the same format as you and i can't reproduce it when reloading the page.

VG5L

from ivfi-php.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.