-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enhance date formatting #428
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I'm sorry, but I can't understand why you say that if (
argument instanceof Date ||
(typeof argument === 'object' && Object.prototype.toString.call(argument) === '[object Date]')
) { The date object is already handled. It's advisable to conduct your tests before making any comments. Regarding the |
This is exactly what I'm trying to convey. For example, Aside from that, the |
@WRXinYue is attempting to deploy a commit to the yunyoujun's projects Team on Vercel. A member of the Team first needs to authorize it. |
If you're ready, please let me know. |
The code logic has been simplified. The |
All test cases have passed. If there are no issues upon review, the merge can proceed. |
timezone
configuration option. For timestamps without time zones (e.g.,2004-06-16 00:00:00
), the configuration can generate timestamps with time zoneslocale
formatTimestamp
, and users are advised to create their own utility classesWhen users utilize the
formatDate
function, it should be kept simple to avoid build failures caused by errors withinformatDate
. We should not restrict users' freedom in writing dates to increase migration costs. The related issues have been fixed, and the FAQ for this feature has been removed from the documentation.If
timezone
is not set, the client's time zone will be used by default, which will not affect the current behavior.The
toDate
function indate-fns-tz
already implementsnew Date
, so there is no need to create a newDate
instance in vueRouter again.