Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ class CurrentTimeTool(Tool):
|
|
| 30 |
}
|
| 31 |
self.output_type="string"
|
| 32 |
|
| 33 |
-
|
| 34 |
try:
|
| 35 |
tz = pytz.timezone(timezone)
|
| 36 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
|
|
|
| 30 |
}
|
| 31 |
self.output_type="string"
|
| 32 |
|
| 33 |
+
def forward(self, timezone: str) -> str:
|
| 34 |
try:
|
| 35 |
tz = pytz.timezone(timezone)
|
| 36 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|