Skip to content

Commit dfb2022

Browse files
Merge pull request #2 from Aesthetikx/aesthetikx-strftime
Use `strftime` Directly
2 parents 520696a + 757e615 commit dfb2022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/singed/flamegraph.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def open_command
5353
end
5454

5555
def self.generate_filename(label: nil, time: Time.now) # rubocop:disable Rails/TimeZone
56-
formatted_time = time.to_formatted_s(:number)
56+
formatted_time = time.strftime('%Y%m%d%H%M%S')
5757
basename_parts = ['speedscope', label, formatted_time].compact
5858

5959
file = Singed.output_directory.join("#{basename_parts.join('-')}.json")

0 commit comments

Comments
 (0)