function cdDateStrToDate( str ) {
- var date = new Date.W3CDTF();
+ var date = new Date();
var data = str.split(/ /);
var year = data[0];
function cdCreateOne( org, start, end, note, refresh ) {
var date = new aoucd();
- date.close_start(start.getW3CDTF());
- date.close_end(end.getW3CDTF());
+ date.close_start(util.date.formatted_date(start, '%{iso8601}'));
+ date.close_end(util.date.formatted_date(end, '%{iso8601}'));
date.org_unit(org);
date.reason(note);
<head>
<title>&staff.server.admin.closed_dates.title;</title>
+ <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/dojo.js"></script>
+ <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/openils_dojo.js"></script>
<script type='text/javascript' src='/opac/common/js/utils.js'> </script>
<script type='text/javascript' src='/opac/common/js/config.js'> </script>
<script type='text/javascript' src='/opac/common/js/CGI.js'> </script>
<script type='text/javascript' src='/opac/common/js/org_utils.js'> </script>
<script type='text/javascript' src='/opac/common/js/init.js'> </script>
<script type='text/javascript' src='/opac/common/js/RemoteRequest.js'> </script>
- <script type='text/javascript' src='/opac/common/js/Date.W3CDTF.js'> </script>
<script type="text/javascript" src="/xul/server/main/JSAN.js"></script>
+ <script type="text/javascript" src="/xul/server/main/constants.js" />
<script type='text/javascript' src='adminlib.js'> </script>
<script type='text/javascript' src='closed_dates.js'> </script>