Skip to content

Commit 3c65a5b

Browse files
committed
use utc time for fething items in newsletter import
1 parent 69982a8 commit 3c65a5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_import-this-week-in-rails.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
require 'reverse_markdown'
3333
require 'date'
3434

35-
post_date = ARGV[1] || Date.today.to_s
35+
date = Date.today
36+
post_date = ARGV[1] || Time.utc(date.year, date.month, date.day)
3637

3738
class HeyWorldEmail
3839
attr_accessor :email, :post_date

0 commit comments

Comments
 (0)