Bernhard P.

Results 147 comments of Bernhard P.

- If `.tz` is used with javascript Date object as only parameter, the information of that object are taken to set the corresponding values of the dayjs object (e.g. hours,...

I scanned the documentation for moment.tz and I did not find the section describing the use of 'tz' with a date string, but without a time zone. Can you help...

May I resume the bug: - you are using moment.tz in a way that is not covered by the documentation of moment (using `moment.tz(dateString)`) and expect - `dayjs.tz(dateString)` to behave...

In this regard dayjs is consistent to what moment does. If we look at the documentation of moment we see: >Note that the number of S characters provided is only...

Oh, I missed the output from dayjs 😳 I created a pr for this (pr #1936)

Perhaps the documentation is not too clear (at least not the starting page for [time zone](https://day.js.org/docs/en/plugin/timezone)). You have to differentiate between * 'parsing in time zone' (`dayjs.tz(isoString, 'Australia/Sydney')` - gives...

Perhaps the documentation is not too clear (at least not the starting page for [time zone](https://day.js.org/docs/en/plugin/timezone)). You have to differentiate between 'parsing in time zone' (dayjs.tz(isoString, 'Australia/Sydney') - gives '2022-02-28T13:57:02+11:00')...

The formatting of durations is similar to the formatting of dates: if you have a date like `2022-06-23T13:14:15` and format it with a format string `YYYY-DD HH:mm:ss` the month is...

That's what I understand, but dayjs cannot do that using format. You could create a small function that gets the values you need, e.g. like this: ``` const durationDayjs =...