Date Modified text time

Good morning McNeel world and happy early Thanksgiving.

I embed a Date Modified text time stamp on every drawing I produce in Layout. For some reason the time it displays is several hours off of the time on my computer. My computer says 11/25/20 7:38 AM and the Date Modified text says 11/25/20 12:39 (no AM or PM).

Any way to correct this?

Thank you.

Cosmas

Rhino 7 SR0 2020-10-27 (Rhino 7 BETA, 7.0.20301.12003, Git hash:master @ 4c0b73af74d105119977b2e4ef0738d956e83af0)
License type: Commercial, build 2020-10-27
License details: Cloud Zoo
Expires on: 2020-12-11

Windows 10.0 SR0.0 or greater (Physical RAM: 32Gb)

Non-hybrid graphics.
Primary display and OpenGL: NVIDIA Quadro P2000 (NVidia) Memory: 5GB, Driver date: 10-22-2020 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 452.57

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: Height

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 10-22-2020
Driver Version: 27.21.14.5257
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 5 GB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
C:\Program Files\Rhino WIP\Plug-ins\Commands.rhp “Commands” 7.0.20301.12003
C:\Program Files\Rhino WIP\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino WIP\Plug-ins\RhinoScript.rhp “RhinoScript”
C:\Program Files\Rhino WIP\Plug-ins\RPC.rhp “RPC”
C:\Program Files\Rhino WIP\Plug-ins\AnimationTools.rhp “AnimationTools”
C:\Program Files\Rhino WIP\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.0.20301.12003
C:\Program Files\Rhino WIP\Plug-ins\RhinoRender.rhp “Legacy Rhino Render”
C:\Program Files\Rhino WIP\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.0.20301.12003
C:\Program Files\Rhino WIP\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino WIP\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino WIP\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 7.0.20301.12003
C:\Program Files\Rhino WIP\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.0.20301.12003
C:\Program Files\Rhino WIP\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.0.20301.12003
C:\Program Files\Rhino WIP\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino WIP\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino WIP\Plug-ins\NamedPositions.rhp “Named Position”

Hi -

I can’t reproduce that here. Could you post a 3dm file?
-wim

Yes. Date Modified time off.3dm (34.3 KB) Here it is.

Just a thing to check - does changing your location in Document Properties help?

Why it defaults to Accra here I have no idea…

It doesn’t seem to, Mitch. :thinking:

OK, I have never used that, thought it might do something like my phone that changes calendar times when I’m in a different time zone… I don’t know why it doesn’t use your system clock then.

Edit - I just saved your file here and I noticed it’s exactly one hour off - i.e. I am at GMT+1, and the time looks to be GMT. A clue maybe?

Oh wait - I just added hh:mm to see and it’s not 2PM, it’s 2AM… So it’s 13 hours off… I also set the location to here to check, no change. Bizarre.

Thanks - I was taking a short-cut and using the Date text field so as not to have to save… :man_facepalming:
I’m also seeing this with the DateModified text field.
But unlike Mitch, it appears to be 1 hour off here…

At any rate - on this list as RH-61705.
-wim

The 2:24 is actually 02:24, not 14:24… add an additional h to h:mm to get hh:mm

Thank you, all. It’s a little thing… but worth investigating :smile:

Cool.
But then it gets even stranger when HH:mm shows 14:24…


-w

Ha! :crazy_face:

@wim Is there a bug in the Text Filed ‘Text string examples’ ?

  • (“s”): should there be a character space between the 3 & T? ex: 2021-11-23 T15:43:00
  • (“T”) formats the time as 3:43:00 PM when the documentation on this page reads that the “T” string should format the time as 15:43:00

Hi Kevin -

That seems to be the case, yes. You are, however, referencing Rhino 5 documentation and, I suppose one could say, this has been fixed in the Rhino 7 documentation where those examples have been taken out.

In Rhino 7, you can get the time to format as you want by using the “Region” flag:
image

-wim

1 Like

@kevin3

The date and time formats are based on Windows data format settings.

2022-01-05_17-23-34

I added a note to the topic.

1 Like