Giter Club home page Giter Club logo

Comments (10)

creecros avatar creecros commented on July 24, 2024

not sure when I can get around to it, but in the meantime, just change the input type of date to datetime-local in the helper file, line 47. that should do it. if it has no effect, try restarting your server before you make that determination.

$html .= $this->helper->form->input('date', 'metamagikkey_' . $key, ['metamagikkey_' . $key => $value], $errors, $attributes, 'form-input-small');

from metamagik.

samjunction avatar samjunction commented on July 24, 2024

from metamagik.

samjunction avatar samjunction commented on July 24, 2024

from metamagik.

samjunction avatar samjunction commented on July 24, 2024

from metamagik.

samjunction avatar samjunction commented on July 24, 2024

from metamagik.

creecros avatar creecros commented on July 24, 2024

can you be specific, what do you mean by formatting? what are you trying to do?

from metamagik.

creecros avatar creecros commented on July 24, 2024

actually I think I follow you.

I literally have no server to even test and look at things right now, so I can only guess here.

you seem to have successfully changed the input to date/time. now, you want the footer to show date/time? my guess is, it works on new things you have input, but not old fields when you had just date? if thats the case, the reason would be, because that information (time) was not stored in the database previously. if you update the value, it should now have that information to display. or, you would have to check the data, and if time isn't included in the stored value, display a generic time, like 00:00. The later could get complicated for you. I'm just guessing here. maybe you are trying to achieve something else.

also, you said you want to apply date/time formatting to both date and date/time. the problem with that is there is only date type. there aren't two types. you didn't create a second date type.

however, if you're goal is to apply a different formatting for date type in the footer, then just add an elseif for date, and then whatever...maybe change the class to something more specific and add some css. I have no idea what exactly you want to achieve to offer more.

example:

<?php elseif ($custom_field['data_type'] == 'date): ?>
                <span class="metamagik-footer-value-date"><?= $this->task->taskMetadataModel->get($task['id'], $custom_field['human_name'], '') ?></span>

from metamagik.

samjunction avatar samjunction commented on July 24, 2024

from metamagik.

creecros avatar creecros commented on July 24, 2024

can you screen shot what it currently shows

from metamagik.

samjunction avatar samjunction commented on July 24, 2024

from metamagik.

Related Issues (20)

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.