Date Format Not Obeyed

Everything related to our flagship word processor.
Post Reply
hatchmo
Posts: 84
Joined: 2004-03-01 10:35:56
Location: Cotati, CA

Date Format Not Obeyed

Post by hatchmo » 2019-07-04 08:08:50

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.
Al Hatch

martin
Official Nisus Person
Posts: 4610
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Re: Date Format Not Obeyed

Post by martin » 2019-07-05 07:43:40

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.
Attachments
Insert Current Date & Time.nwm
(5.75 KiB) Downloaded 62 times

hatchmo
Posts: 84
Joined: 2004-03-01 10:35:56
Location: Cotati, CA

Re: Date Format Not Obeyed

Post by hatchmo » 2019-07-05 08:44:10

Thanks for the quick reply. And thanks for the macro. I will indeed use it.
Al Hatch

Post Reply