diff options
| author | Tejas Tank <tta@openerp.com> | 2012-11-01 12:56:31 +0530 |
|---|---|---|
| committer | Tejas Tank <tta@openerp.com> | 2012-11-01 12:56:31 +0530 |
| commit | acac88ed5a334ee536c26ebc146871af386593c6 (patch) | |
| tree | 869fcd1a15afad49b02ef27ee1233fa1a91771d9 /addons/google_docs/google_docs.py | |
| parent | 08e37a27580d8322311dd8f27c082293ca7548b9 (diff) | |
[IMP] Use DEFAULT_SERVER_DATETIME_FORMAT constant.
bzr revid: tta@openerp.com-20121101072631-58bek7nog6qyeg8z
Diffstat (limited to 'addons/google_docs/google_docs.py')
| -rw-r--r-- | addons/google_docs/google_docs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py index 901ba17da3d..462c8240810 100644 --- a/addons/google_docs/google_docs.py +++ b/addons/google_docs/google_docs.py @@ -18,6 +18,7 @@ # ############################################################################## from datetime import datetime +from tools import DEFAULT_SERVER_DATETIME_FORMAT from osv import osv, fields from tools.translate import _ try: @@ -61,7 +62,7 @@ class google_docs_ir_attachment(osv.osv): #login with the base account google module client = self._auth(cr, uid, context=context) # create the document in google docs - title = "%s %s" % (context.get("name","Untitled Document."), datetime.today().strftime("%Y-%m-%d %H:%M:%S")) + title = "%s %s" % (context.get("name","Untitled Document."), datetime.today().strftime(DEFAULT_SERVER_DATETIME_FORMAT)) local_resource = gdata.docs.data.Resource(gdata.docs.data.DOCUMENT_LABEL,title=title) #create a new doc in Google Docs gdocs_resource = client.post(entry=local_resource, uri='https://docs.google.com/feeds/default/private/full/') |
