Comments (10)
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.
MetaMagik/Helper/MetaHelper.php
Line 47 in 7d0fa25
from metamagik.
from metamagik.
from metamagik.
from metamagik.
from metamagik.
can you be specific, what do you mean by formatting? what are you trying to do?
from metamagik.
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.
from metamagik.
can you screen shot what it currently shows
from metamagik.
from metamagik.
Related Issues (20)
- MetaMagik blocks new task creation HOT 11
- Keep values of custom fields if one required field is empty HOT 3
- About $ sign HOT 11
- Edit Fields HOT 3
- Referencing custom field in automatic action HOT 5
- Custom field caption HOT 3
- metakey and metaval filters seem not to be working HOT 9
- using API with MetaMagic HOT 25
- [Feature request] Text area fields should be the same width as the parent column HOT 1
- Go
- The task creator will always be current user when import a task. HOT 2
- Feature Request: Label Custom Field Columns HOT 7
- I am unable to select and copy text from metamagic tables in task view HOT 1
- Sales pipeline, amounts and percentages HOT 6
- No Webhook-Notification upon changes to meta field values
- Cannot unassign tasks when MetaMagik is active HOT 4
- Autocomplete function for fields with many values
- Bug with MetaMagik HOT 1
- Add data-key and data-value to HTML elements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metamagik.