bitpoet / datetimeadvanced Goto Github PK
View Code? Open in Web Editor NEWReplacement for FieldtypeDatetime with support for subfield selectors like year, month, hour or day of year
License: Mozilla Public License 2.0
Replacement for FieldtypeDatetime with support for subfield selectors like year, month, hour or day of year
License: Mozilla Public License 2.0
When a new page is saved and the field is set to default to the current date, a negative date value is shown instead.
The database field in that case contains an all-zero date string.
First reported by @Toutouwai here.
Argument count error on line 232.
Great idea for a module!
It seems to just return a string instead of object tho. I've followed the installation instructions but when used, it's not different from Datetime field.
Would you know where to look for clues to fix this? Or is there a step I've missed?
All PW modules extend WireData which extends Wire, and Wire::__toString()
returns the class name.
It looks like the core expects all modules to return their class name as the string value - see FieldtypeModule.
This causes an error with WireDT because it does not return the class name in __toString()
, so this use of wireClassParents()
fails. You can see this error via Tracy in the PW back-end by editing any page that uses the admin template while DatetimeAdvanced is installed.
Not sure if this is something you could change in WireDT or maybe suggest to Ryan that $parents = wireClassParents("$module");
be replaced with $parents = wireClassParents($module);
so the is_object()
part of wireClassParents()
would come into play.
On this line, WireExpection
should be WireException
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.