Giter VIP home page Giter VIP logo

Comments (7)

JamiKettunen avatar JamiKettunen commented on June 11, 2024 1

So date +%FT%T.%N%:z outputs something like 2024-04-10T09:47:51.%N%:z for you, have you messed with the core system utilities (shouldn't they always be GNU coreutils on NixOS?)

I have a patch to make it (hopefully) universally compatible including with FreeBSD date(1) used on Chimera Linux at the cost of losing nanosecond accuracy which I perhaps should submit, no idea if that is desirable but I can't really think of a case where the sub-second accuracy is important personally.

from distrobox.

NateWright avatar NateWright commented on June 11, 2024

So date +%FT%T.%N%:z outputs something like 2024-04-10T09:47:51.%N%:z for you, have you messed with the core system utilities (shouldn't they always be GNU coreutils on NixOS?)

I have a patch to make it (hopefully) universally compatible including with FreeBSD date(1) used on Chimera Linux at the cost of losing nanosecond accuracy which I perhaps should submit, no idea if that is desirable but I can't really think of a case where the sub-second accuracy is important personally.

I don't believe I have messed with core system utilities. I can try out the patch though.

from distrobox.

JamiKettunen avatar JamiKettunen commented on June 11, 2024

What is your date --version? I couldn't reproduce your date output issue on Void Linux (GNU coreutils 9.4) which NixOS unstable should match according to https://search.nixos.org nor Arch Linux (GNU coreutils 9.5)

from distrobox.

NateWright avatar NateWright commented on June 11, 2024

What is your date --version? I couldn't reproduce your date output issue on Void Linux (GNU coreutils 9.4) which NixOS unstable should match according to https://search.nixos.org nor Arch Linux (GNU coreutils 9.5)

Okay, I did that and it looks like it was using the busybox one. I uninstalled busybox and it works now.

from distrobox.

JamiKettunen avatar JamiKettunen commented on June 11, 2024

Hm ok. So it seems distrobox should also be broken on Alpine-based hosts then with busybox (which I can check later) but I do wonder how you ended up with them being your primary provider for date and who knows what other commands.

from distrobox.

NateWright avatar NateWright commented on June 11, 2024

I guess I don't understand how that all works. Is there a way to prevent this if you have BusyBox installed?

from distrobox.

JamiKettunen avatar JamiKettunen commented on June 11, 2024

I've submitted the previously mentioned patch as #1343

from distrobox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.