Page 1 of 1

Date Format Not Obeyed

Posted: 2019-07-04 08:08:50
by hatchmo
This might be a bug report.
Nisus Writer Pro 3.0.2 is not obeying the date format set in System Preferences in Mojave 10.14.5.
Instead of 07/04/19 it shows 7/4/19.

When I choose either of these
Insert > Date and Time > Custom Date and Time…
Insert > Date and Time > Configure Date & Time Formats…

the System Preferences dialog for Date and Time opens. No matter how I set the preference there, Nisus Writer does its own thing.

While I am at it, the instructions are outdated in the dialog for that first menu item above. It reads
…which you can customize by clicking the ”Configure” button below. Once there, click the “Formats” tab and then either of the “Customize” buttons.
Well, these buttons (including the “Configure” button) no longer exist in Mojave and High Sierra. The names have changed. There is an Advanced… button, but no “Customize” button, for example.

Re: Date Format Not Obeyed

Posted: 2019-07-05 07:43:40
by martin
Thanks for letting us know Al, this is indeed a bug. Nisus Writer isn't picking up the system date & time formats correctly. We'll have to get this fixed for the next update, sorry about that!

In the meantime, if you often need to insert custom date/time stamps, you might consider using a macro. Here's an example:

Code: Select all

$date = Date.now

$month = Date.zeroPad($date.month)
$day = Date.zeroPad($date.day)
$year = Date.zeroPad($date.year)
$hour = Date.zeroPad($date.hour)
$minute = Date.zeroPad($date.minute)

$text = "$year.$month.$day $hour:$minute"
Type Text $text
You can customize the format by editing the single line that assigns the $text variable.

Re: Date Format Not Obeyed

Posted: 2019-07-05 08:44:10
by hatchmo
Thanks for the quick reply. And thanks for the macro. I will indeed use it.