Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion erts/emulator/utils/make_alloc_types
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ print DST "/*
* -----------------------------------------------------------------------
*
*
* Copyright Ericsson AB ", (1900 + (localtime)[5]), ". All Rights Reserved.
* Copyright Ericsson AB ", (1900 + (localtime($ENV{SOURCE_DATE_EPOCH} || time))[5]), ". All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the \"License\");
* you may not use this file except in compliance with the License.
Expand Down
12 changes: 11 additions & 1 deletion make/ex_doc.exs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,17 @@ extras =

annotations = Access.get(local_config, :annotations_for_docs, fn _ -> [] end)

current_datetime = System.os_time() |> DateTime.from_unix!(:native)
current_datetime =
case System.get_env("SOURCE_DATE_EPOCH") do
nil ->
System.os_time() |> DateTime.from_unix!(:native)

epoch ->
case Integer.parse(epoch) do
{seconds, ""} -> DateTime.from_unix!(seconds)
_ -> System.os_time() |> DateTime.from_unix!(:native)
end
end

## Check if we should treat warnings as errors
warnings_as_errors =
Expand Down
Loading