Skip to content
Commits on Source (2)
......@@ -319,6 +319,21 @@ end
Note that Ruby's Datetime.strftime is locale-independent by default.
### Scala
To get milliseconds since Epoch:
```scala
sys.env.get("SOURCE_DATE_EPOCH").map(_.toLong * 1000)
```
To get a `java.util.Date`:
```scala
sys.env.get("SOURCE_DATE_EPOCH")
.map(sde => new java.util.Date(sde.toLong * 1000))
```
### Last-resort using faketime
''As a last resort to be avoided where possible'' (e.g. if the upstream tool is too hard to patch, or too time-consuming for you right now to patch, or if they are being uncooperative or unresponsive), package maintainers may try something like the following:
......
......@@ -48,6 +48,13 @@ draft: true
* Jelle van der Waa:
* [gnutls](https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/gnutls&id=ef86c4da049e4bdbcee9898a9b9702f4bd9618b5) (remove timestamps from gz'd manpages)
### NixOS
* Arnout Engelen:
* [bash](https://github.com/NixOS/nixpkgs/pull/77196) (enable `PGRP_PIPE` regardless of build-time kernel version)
* [jitterentropy](https://github.com/NixOS/nixpkgs/pull/77202) (remove timestamps from gz'd manpages)
* [ms-sys](https://github.com/NixOS/nixpkgs/pull/77096) (remove timestamps from gz'd manpages)
## unsorted/FIXME
* Holger updated reprotest to 0.7.12 to Debian unstable and PyPi, fixing problems with timeouts. (And with updating reprotest on PyPi.)