mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-03-01 00:41:45 -05:00
Merge pull request #985 from FranklinChen/fix-timezone
Update reference to timezone using new config system.
This commit is contained in:
commit
bda5ee1e10
2
Rakefile
2
Rakefile
@ -135,7 +135,7 @@ task :new_post, :title do |t, args|
|
||||
title = get_stdin("Enter a title for your post: ")
|
||||
end
|
||||
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(configuration[:source])
|
||||
time = now_in_timezone(timezone)
|
||||
time = now_in_timezone(configuration[:timezone])
|
||||
mkdir_p "#{configuration[:source]}/#{configuration[:posts_dir]}"
|
||||
filename = "#{configuration[:source]}/#{configuration[:posts_dir]}/#{Time.now.strftime('%Y-%m-%d')}-#{title.to_url}.#{configuration[:new_post_ext]}"
|
||||
if File.exist?(filename)
|
||||
|
Loading…
x
Reference in New Issue
Block a user