labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fa...@apache.org
Subject svn commit: r832281 - /labs/consite/trunk/conferences/lib/schedule_tags.rb
Date Tue, 03 Nov 2009 02:49:19 GMT
Author: farra
Date: Tue Nov  3 02:49:19 2009
New Revision: 832281

URL: http://svn.apache.org/viewvc?rev=832281&view=rev
Log:
instead of new tag, use an attribute

Modified:
    labs/consite/trunk/conferences/lib/schedule_tags.rb

Modified: labs/consite/trunk/conferences/lib/schedule_tags.rb
URL: http://svn.apache.org/viewvc/labs/consite/trunk/conferences/lib/schedule_tags.rb?rev=832281&r1=832280&r2=832281&view=diff
==============================================================================
--- labs/consite/trunk/conferences/lib/schedule_tags.rb (original)
+++ labs/consite/trunk/conferences/lib/schedule_tags.rb Tue Nov  3 02:49:19 2009
@@ -217,19 +217,11 @@
     tag "tracks:session:#{column}" do |tag|
       if tag.attr['datefmt']
         tz = ActiveSupport::TimeZone[tag.locals.conference.time_zone]
-        time = tz.utc_to_local tag.locals.session[column]
-        time.strftime(tag.attr['datefmt'])
-      else
-        tag.locals.session[column]
-      end
-    end
-  end
-
-  [:start_time_utc, :end_time_utc].each do | column |
-    tag "tracks:session:#{column}" do |tag|
-      if tag.attr['datefmt']
-        tz = ActiveSupport::TimeZone[tag.locals.conference.time_zone]
-        time = tag.locals.session[column]
+        if tag.attr['utc']
+          time = tag.locals.session[column]          
+        else
+          time = tz.utc_to_local tag.locals.session[column]
+        end
         time.strftime(tag.attr['datefmt'])
       else
         tag.locals.session[column]



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message