mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-01-14 07:08:01 -05:00
Update reference to timezone using new config system.
This commit is contained in:
parent
3336dc43f1
commit
a5e7ed82db
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…
Reference in New Issue
Block a user