Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/calculix-ccx/files/patch-date.pl
16462 views
1
--- date.pl.orig 2024-08-05 17:13:21 UTC
2
+++ date.pl
3
@@ -1,6 +1,7 @@
4
#!/usr/bin/env perl
5
6
-chomp($date=`date`);
7
+use POSIX qw(strftime);
8
+chomp(my $date = strftime("%Y-%m-%d", gmtime($ENV{SOURCE_DATE_EPOCH} || time)));
9
10
# inserting the date into ccx_2.22.c
11
12
13