Skip to content

Getting date from lua script seems to give me the time instead #4067

@0x0000ff

Description

@0x0000ff

Description

I am currently using the Nix package of Micro, and have put together a script in Lua for inserting the time and date:

https://github.com/0x0000ff/date

However when i use os.date("%x") in Lua to get a date string as per instructions here:

https://www.lua.org/pil/22.1.html

I seem to get the time in the date format. So the current date of 09/04/26 comes out as 05/04/56.

Environment

  • Version:
    Version: 2.0.15
    Commit hash: v2.0.15
    Compiled on Unknown
  • OS:
    linux mint 22.1
  • Terminal:
    Konsole 23.08.05

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions